Re: Path to Document in Script Editor
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