Re: Given a POSIX Path...
Re: Given a POSIX Path...
- Subject: Re: Given a POSIX Path...
- From: Doug McNutt <email@hidden>
- Date: Sun, 5 Dec 2010 14:24:14 -0700
At 13:12 -0600 12/5/10, Luther Fuller wrote:
>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?
>
>Since your dealing only with the Finder, I would recommend not using the posix path. (posix path should only be used in 'do shell script ...' where it's required.)
>
>Use file aliases. If you need to construct a new file name, it's easy to convert between colon-delimited text and file aliases.
If you want to use POSIX paths you should get familiar with the UNIX mv command with a "man mv" command in Terminal.app or an equivalent web search. It's really intended for what you're doing and wouldn't involve Finder at all because you would perform a do shell script rather than a tell Finder.
I find the UNIX commands far better documented than the AppleScriptable methods in Finder. There are also shell features that give you access to the filename part of a path.
--
--> A fair tax is one that you pay but I don't <--
_______________________________________________
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