Re: Given a POSIX Path...
Re: Given a POSIX Path...
- Subject: Re: Given a POSIX Path...
- From: Emmanuel LEVY <email@hidden>
- Date: Sun, 5 Dec 2010 22:41:26 +0100
On Dec 5, 2010, at 11:49 AM, Marconi wrote:
Given the quoted form of a posix path to a file, how do I get that
item's Finder info structure so I can rename that file?
Finder is fond of aliases, so I would do - assuming fq is the quoted
form of the posix path:
set f to do shell script "echo " & fq -- this do "unquote" the string
set fa to posix file f as alias
tell app "Finder" to set name of fa to whatever -- this not tested.
Emmanuel
_______________________________________________
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