Re: [newbie] extract POSIX path from dropped folder
Re: [newbie] extract POSIX path from dropped folder
- Subject: Re: [newbie] extract POSIX path from dropped folder
- From: Michelle Steiner <email@hidden>
- Date: Sat, 21 Jul 2007 11:31:31 -0700
On Jul 21, 2007, at 10:43 AM, Michael Warner wrote:
I have a folder that drops onto a droplet.
I want to extract the full POSIX path of the folder itself as a
string.
Can someone point me to a script that does this, or send me the
relevant lines of code?
on open {theitem}
display dialog POSIX path of theitem
end open
Using braces instead of parentheses guarantees that if you
inadvertently drag more than one item onto the droplet, only the
first item will be processed. With parentheses, you would either
have to do a loop to process all of the items or explicitly extract
the first item.
-- Michelle
--
I am a pseudomasochist.. I like it when people pretend to beat me.
_______________________________________________
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