Re: Given a POSIX Path...
Re: Given a POSIX Path...
- Subject: Re: Given a POSIX Path...
- From: Marconi <email@hidden>
- Date: Sun, 5 Dec 2010 15:24:43 -0700
At 8:49 AM +1100 12/6/10, Shane Stanley sent email regarding Re:
Given a POSIX Path...:
On 6/12/10 8:35 AM, "Marconi" <email@hidden> wrote:
But the posix path is all I have. The file dropped onto the droplet
script allows me to get the full path to one of the two files to be
renamed.
If your script is a droplet, then you are being passed an alias, not a POSIX
path. Just don't convert it to a POSIX path in the first place.
As noted earlier, the first file can be renamed based on the alias
info of the dropped item. Its companion file, whose name is derived
by getting the dropped file's path, minus the file extension, is then
used to create the path to the companion file to be renamed. So...
(Personally I'd still go the mv path, though...)
Which is what I did. After determining the dropped files full path,
I'm just renaming both files using mv. A lot easier, but I didn't
know if OS X would complain or have problems with my sneaking around
Finder's back to rename files.
Thanks to those who offered assistance. mv was the answer.
_______________________________________________
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