• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Path to Script in Script Editor's Front Window: FYI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Path to Script in Script Editor's Front Window: FYI


  • Subject: Path to Script in Script Editor's Front Window: FYI
  • From: "Jonathan Levi, M.D." <email@hidden>
  • Date: Tue, 29 Mar 2005 00:57:04 -0500

Hi all,

In the course of writing a script to get the path to the file of the Script Editor's front window, I discovered:

a. The following script works:

tell application "Script Editor"
	set pathU to (path of document of front window)
end tell
POSIX file pathU
--result: file "HD:Users:jonathan:Desktop:MacPathToScript.scpt"

b. The following permutation doesn't (surprisingly, I think):

tell application "Script Editor"
	set pathU to (path of document of front window)
	POSIX file pathU
end tell
--NSCannotCreateScriptCommandError

Script writers facing the same task as I may find the above useful. --Jonathan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Hoe to tell when a program is done? - Solved
  • Next by Date: Showing a Package's Contents
  • Previous by thread: asx file creation
  • Next by thread: Showing a Package's Contents
  • Index(es):
    • Date
    • Thread