• 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: Paul Berkowitz <email@hidden>
  • Date: Sat, 15 Mar 2008 16:19:59 -0700
  • Thread-topic: Path to Document in Script Editor

On 3/15/08 3:54 PM, "Luther Fuller" <email@hidden> 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
>
Right. It's the 'POSIX file' command not functioning inside the explicit
Script Editor tell block. For some reason AppleScript won't run the Standard
Additions command within the tell block, as it should, even though it
compiles it so has obviously checked the Standard Additions dictionary.

You can get around this without exiting the tell block by a 'tell me to'.

tell app "Script Editor"
    tell me to set docPath to POSIX file (path of (document of window 1))
end tell


--
Paul Berkowitz


 _______________________________________________
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

  • Follow-Ups:
    • Re: Path to Document in Script Editor
      • From: Luther Fuller <email@hidden>
References: 
 >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