Thread View: adobe.scripting.indesign
8 messages
8 total messages
Started by Eliot_Harper
Fri, 09 Jan 2009 11:59
Trusted Source
Author: Eliot_Harper
Date: Fri, 09 Jan 2009 11:59
Date: Fri, 09 Jan 2009 11:59
11 lines
1299 bytes
1299 bytes
I need to execute a JavaScript outside of the scripts panel, triggered by another process. Each time I run the script, I receive the message:
You are about to run a script in InDesign CS3. You should only run scripts
from a trusted source. Do you want to run the script? [yes/no]
Where is a "trusted source" in Windows so I can run scripts without this manual click-through alert?
I've tried dropping it in ..\Adobe InDesign CS3\Scripts\ and ..\Scripts Panel\ directories, but that doesn't work. I note that there's a trusted location for Photoshop scripts: C:\Documents and Settings\Administrator\My Documents\Adobe Scripts (refer to <http://www.adobeforums.com/webx/.59b55b6d)>, but this does not work for InDesign scripts. Any ideas?
Re: Trusted Source
Author: Robert Tkaczyk
Date: Fri, 09 Jan 2009 12:58
Date: Fri, 09 Jan 2009 12:58
6 lines
847 bytes
847 bytes
I think "truested source" mean "you know what script will do" ;) robin -- www.adobescripts.com
Re: Trusted Source
Author: Dave_Saunders
Date: Fri, 09 Jan 2009 13:04
Date: Fri, 09 Jan 2009 13:04
11 lines
1102 bytes
1102 bytes
Eliot, I've never thought about this. It is specifically caused by the: #target indesign statement. But if you leave that out instead of running the script will just open in ESTK (as you probably know). What form does this external process take? Are we talking Mac or Windows? If Mac and the process can issue Apple Events (or whatever they're called), you should be able to tell InDesign to run the script and that would get around the problem. Dave
Re: Trusted Source
Author: paul_engels
Date: Fri, 09 Jan 2009 14:59
Date: Fri, 09 Jan 2009 14:59
6 lines
865 bytes
865 bytes
Does anybody know how to run a script in Indesign CS3 from an external process on a MAC without getting the message: You are about to run a script in Adobe InDesign CS3. You should only run scripts from a trusted source. Do I have to place the script in a certain folder to make it trusted? Paul
Re: Trusted Source
Author: Eliot Harper
Date: Fri, 09 Jan 2009 15:51
Date: Fri, 09 Jan 2009 15:51
9 lines
1251 bytes
1251 bytes
Hi, I assumed "trusted source" means the same as Photoshop, meaning a trusted location (e.g. the application Scripts directory). I'm calling the JavaScript from an application that I've written in PHP and running locally on my workstation. I'm using PHP as I need the application to perform other functions (create text files for import by the script, etc), before I can run the script. Here is the command that I'm executing from the command line:
"C:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit 2\ExtendScript
Toolkit 2.exe" -run "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/production/script.jsx"
If there's another method of calling the script that won't invoke the dialog, then I'd like to find out.
Re: Trusted Source
Author: Dave_Saunders
Date: Fri, 09 Jan 2009 18:29
Date: Fri, 09 Jan 2009 18:29
15 lines
1471 bytes
1471 bytes
From the ESTK CS4 ReadMe (accessible from the ESTK Help menu): -------------------- 2.2. Adobe Scripts Folder On first launch, the ESTK creates a folder named Adobe Scripts in the user's Documents folder. This is the folder whose contents the Default favorite in the Scripts panel displays. When double-clicking a JSX file, the ESTK normally acts as an invisible security filter. Before actually launching the file, a security dialog pops up asking if it is OK to execute the script. The ESTK treats the user's Documents/Adobe Scripts folder as a trusted location. When you double-click a JSX file in that folder, the Toolkit does not display the security alert. -------------------- This suggests that the same folder should work for all Suite applications that are scriptable with ExtendScript. Dave
Re: Trusted Source
Author: Olav_Kvern
Date: Fri, 09 Jan 2009 19:11
Date: Fri, 09 Jan 2009 19:11
7 lines
820 bytes
820 bytes
Hi Eliot, Dave, Another approach would be to have a platform script (i.e., VBScript or AppleScript) run the script using the do script method. That way, it doesn't matter where the script is. Thanks, Ole
Re: Trusted Source
Author: Eliot Harper
Date: Sat, 10 Jan 2009 16:15
Date: Sat, 10 Jan 2009 16:15
7 lines
898 bytes
898 bytes
Thanks Ole and Dave, Dave's suggestion did the trick. I dropped the script in My Documents\Adobe Scripts\ and it runs without the prompt. I tried this earlier, but I incorrectly dropped it in the administrator user folder, not the user folder of the logged in user. Thanks again! Eliot
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads