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 14:35:11 -0700
At 2:24 PM -0700 12/5/10, Doug McNutt sent email regarding Re: Given
a POSIX Path...:
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.)
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. The other file has the same name but a different file
suffix. So, it's easy to come up with the full path to the other file
that I want to rename but I don't know how to get Finder's "info"
structure for the other file.
If you want to use POSIX paths you should get familiar with the UNIX
mv command
mv would be very easy and I was tempted to go that way at first but I
didn't want to rename a file "behind Finder's back." Maybe I just
shouldn't worry about it. mv would be very easy to do...
I just thought it would be advisable to use Finder. If it's perfectly
safe to use mv then I will.
_______________________________________________
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