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: Emmanuel <email@hidden>
- Date: Sun, 13 Apr 2003 00:55:20 +0200
At 12:12 AM +0200 12/04/03, Michael Cytrynowicz wrote:
Question for the kind applescripters that populate this list.
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.
Michael, you could be one of the people whom we made Smile for.
There is no advantage that I know using Script Editor 1.9 nor 2
instead of using Smile 2.5.2.
If you use Smile, you get the "Worksheet", your permanently open
notepad, which in addition to the official notepad - which is cool -
is a Terminal window for AppleScript.
And in Smile you get drag-and-drop, you drag the icon of any file
from its window title bar (or from Finder, of course) into any text
window (for instance, the Worksheet) to print its path. If you press
"cmd", you get a file reference instead as the path as a string.
And, if you type faster than you click, instead of drag-and-drop you
will run (from any text window) "window 2's path name" and have that
famous path printed in Smile's console.
Finally, what I do personally is storing the path in a variable. From
any text window, I run, say, "set myLib to path name of window 2"
then at any moment later I run "doopen(mylib)" to re-open the file
without visiting Finder.
Emmanuel
_______________________________________________
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.