• 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
Re: Path to Document in Script Editor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Path to Document in Script Editor


  • Subject: Re: Path to Document in Script Editor
  • From: Michelle Steiner <email@hidden>
  • Date: Sat, 15 Mar 2008 16:02:10 -0700

On Mar 15, 2008, at 3:54 PM, Luther Fuller wrote:

1. It's inside a 'tell application "Script Editor"' block.
2. I'm running it within Script Editor.
3. OS X 10.4.11

Curious. When I put it inside that block, I get

tell current application
get path of document of window 1
"/Users/michelle/Desktop/az.scpt"
get POSIX file "/Users/michelle/Desktop/az.scpt"
"Script Editor got an error: Can’t get POSIX file \"/Users/michelle/ Desktop/az.scpt\"."


But outside of all blocks, I get this:

tell current application
	get path of document of window 1
		"/Users/michelle/Desktop/az.scpt"
end tell

In the latter case, the results pane gives me the correct result.

-- Michelle

--
ASCII stupid question, get a stupid ANSI.


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: Path to Document in Script Editor (From: Paul Berkowitz <email@hidden>)
 >Re: Path to Document in Script Editor (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Path to Document in Script Editor
  • Next by Date: Re: Path to Document in Script Editor
  • Previous by thread: Re: Path to Document in Script Editor
  • Next by thread: Re: Path to Document in Script Editor
  • Index(es):
    • Date
    • Thread