Re: Without leaving Script Editor, how can I get a script's saved path?
Re: Without leaving Script Editor, how can I get a script's saved path?
- Subject: Re: Without leaving Script Editor, how can I get a script's saved path?
- From: Michelle Steiner <email@hidden>
- Date: Fri, 11 Apr 2003 18:37:13 -0700
On Friday, April 11, 2003, at 06:04 PM, Timothy Bates wrote:
tell script editor to path to document 1
This would be in script editor 2 beta? In Script Editor for me this
returns
an error.
I get an error in editor 2 beta. What works for me is this:
path of document of window 1
--> "/Users/michelle/Desktop/abc.scpt"
Just like that, without any tell.
Or this:
(path of document of window 1) as POSIX file
--> file "Dora:Users:michelle:Desktop:abc.scpt"
Again, without any tell.
Both of them work with an explicit 'tell application "Script Editor"
to', though, but if it is not included, it is apparently implied.
--Michelle
--
Support our troops. Bring them home NOW!
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.