Re: Renaming a copied file with Finder
Re: Renaming a copied file with Finder
- Subject: Re: Renaming a copied file with Finder
- From: Timothy Bates <email@hidden>
- Date: Mon, 09 Oct 2006 18:36:33 +0100
- Thread-topic: Renaming a copied file with Finder
Ahh.. That's the problem of drag and drop in script editor
posix file "/Users/tim/Desktop/"
Returns
file "Prelude:Users:tim:Desktop:"
> On 10/9/06 9:59 AM, "Timothy Bates" <email@hidden> wrote:
>> tell application "Finder"
>> duplicate file "Prelude:Users:tim:Desktop:imageR1D.png" to file
>> "Prelude:Users:tim:Desktop:" without replacing
>> end tell
>> Oops. Duplicate fails
> For one thing, "Prelude:Users:tim:Desktop:" is not a file, it's a folder. So
> referring to file "Prelude:Users:tim:Desktop:" is always going to error. If
> you change it to 'alias' or 'folder' I think you'll get the more sensible
> error that Michelle quotes.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden