Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

AppleScript AI CS4: path to me

$
0
0

Hi Folks,

 

I hope this is a simple question!

 

How can an AppleScript that is run from Illustrator's Scripts menu get a path to itself instead of Adobe Illustrator.app? I have been hard coding the path to the Scripts folder, but this won't work if the user puts the script into a subfolder of the Scripts folder.

 

The script below displays "<boot-volume>:Applications:Adobe Illustrator CS4:Adobe Illustrator.app" but I'm interested in the path to the script.

 

tell application "Finder"     display dialog ((path to me) as Unicode text)
end tell

 

Thanks!

 

-- Jim


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>