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: Michael Cytrynowicz <email@hidden>
- Date: Sat, 12 Apr 2003 01:18:03 +0200
Jakob,
Sure does! Thanx!
This is what I got so far - I open another SE window, and run this,
tell application "Script Editor"
get the path of document 2
end tell
I get the path to the other script - in this form:
"/Users/mike/Design folders/Design1/02-AppleScript/PS capture text to
BBEdit.scpt"
I can "posix" it in another script to get the usual HFS path, but I will try
to do it in one pass (if I can...)
Thanks again, for the great help,
Mike
>
I would try to see if SE can get you the path/location of 'window 1'
>
>
Does that make sense?
>
>
>
>
>
> On lxrdag, apr 12, 2003, at 00:12 Europe/Copenhagen, Michael Cytrynowicz
>
> wrote:
>
>
>
> If I have ScriptEditor as frontmost app, with a script that has already been
>
> compiled and saved, is there a way I can get its saved path copied to the
>
> clipboard, without having to physically navigate to the location where the
>
> file was saved?
>
>
>
> Why I want it? - because I'd like to save the path to the notepad, which is
>
> open right next to SE.
_______________________________________________
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.