• 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 15:25:53 -0700

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

You can get it to return the entire path with this syntax:

set docPath to POSIX file (path of (document of window 1))

But it will be in colon delimited format instead of slash delimited:

Colon delimited is exactly what I need, so I tried your syntax to replace my work-around.
All I got was Error = -1700, Script Editor got an error: Can't make <<class psxf>> "/Users/username/Desktop/..." into type reference.

As Paul asked, is that inside any tell block, or is it running from the script menu or anything else other than within Script Editor?


--
“America... just a nation of two hundred million used car salesmen with all the money we need to buy guns and no qualms about killing anybody else in the world who tries to make us uncomfortable.”
-- Hunter S. Thompson



_______________________________________________ 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: 
 >Path to Document in Script Editor (From: Luther Fuller <email@hidden>)
 >Re: Path to Document in Script Editor (From: Michelle Steiner <email@hidden>)
 >Re: Path to Document in Script Editor (From: Luther Fuller <email@hidden>)

  • Prev by Date: Before I forget
  • Next by Date: Re: 10.4.9 versus 10.4.10
  • Previous by thread: Re: Path to Document in Script Editor
  • Next by thread: Before I forget
  • Index(es):
    • Date
    • Thread