Ask a Question related to Adobe Acrobat Macintosh, Design and Development.
-
Garrett_Cobarr@adobeforums.com #1
Re: Folder level JavaScripts?
Where to put Folder level JavaScripts on OS X?
I can't believe that I asked this question back in late June, a little over a month ago, but I finally found the answer and wanted to post it back for others to use. As I said in the original post, there is no documentation of this in any of the Acrobat help or JS Guide or Reference. This documentation only describes how it was with Mac OS's prior to version 10, in fact there is no mention any where of OS X.
First of all I wanted to thank George Johnson who put me on to the idea of using the creation of a global variable and then setting it to being persistent...
George Johnson 7/1/04 1:52pm </cgi-bin/webx?14@@.3bb4d223/7>
....this creates the the glob.js in the JavaScripts folder/directory and pretty much points the way to where to put your external .js files.
Also, today, I found a line of script in a copy of Kas Thomas's presentation at Seybold 2002 presentation, you can find that here...
<http://www.planetpdf.com/mainpage.asp?webpageid=1861>
Using this line of code...as an example in the console...
app.getPath("user", "JavaScript");
....generates this outcome...at least on a Mac OS 10.2.8...
/<your hard drive>/Users/<your user name>/Library/Acrobat User Data/JavaScripts/glob.js
Actually, I don't see why either of these methods wouldn't work for anyone on any platform or OS.
app.getPath();
This command will mislead you, at least on Mac OS X. It will deliver this path...
/<your hard drive>/Applications/Adobe Acrobat 6.0 Professional/Acrobat 6.0.2 Professional.app/Contents/MacOS/
....or you could hold down the Control key and click on the Acrobat Application, revealing the contents of the package but you definitely do not want to put your .js files here. I experimented with this on a separate hard drive, it was ugly when I tried to start up Acrobat.
Garrett_Cobarr@adobeforums.com Guest
-
Folder level security Differences in Reader 8.0 && 9.0
Does the following message mean that my users will need to all be running on Acrobat Reader 9.0 ? I have some javascripts that work in Acrobat 9.0... -
Folder Level JavaScripts with Acrobat Browser Plugin
Hello, I have to customize Acrobat in the way that I disable some menu items and toolbar buttons and therefore add my own buttons. I can do... -
Password protection on folder level
Hi, I have setup password protection on the folder the user is publishing in- the point is to protect his content so only people authorized by... -
Can you rename document level JavaScripts? How?
I cannot seem to rename a document level JavaScript. And, as is often the case, no information in the Acrobat documentation. Thanks in advance. -
Moving everything up one level, all works except for one folder?! Help!
hi ok, a fairly long one here so stick with it. i had my main site (www.studavis.co.uk) in the root of my server, but i also ran a number of other...



Reply With Quote

