Skip to main content
hilukasz
Known Participant
December 23, 2009
Question

get path of script you're running

  • December 23, 2009
  • 1 reply
  • 4248 views

I know you can get path of the documet you're working on activeDocument.path, but can you get the path of the script you're running as well?

This topic has been closed for replies.

1 reply

hilukasz
hilukaszAuthor
Known Participant
December 23, 2009

I might not even need to now that I think of it, I'm just trying to target and copy item from photoshop and paste it over in illustrator, here is how I am doing it:


     illustrator.executeScript(illustrator.jsx);

     photoshop.executeScript (photoshop.jsx);

Inspiring
December 23, 2009

You have to be carefull how you use path and name in a script as they are read only properties of app.

var p = activeDocument.fullName;
alert(p);// alerts full path to doc
var path = activeDocument.fullName;
alert(path);// alerts full path to Photoshop

alert($.fileName)// full path to script