• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Renaming a copied file with Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Renaming a copied file with Finder (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Renaming a copied file with Finder
  • Next by Date: Re: Renaming a copied file with Finder
  • Previous by thread: Re: Renaming a copied file with Finder
  • Next by thread: Re: Renaming a copied file with Finder
  • Index(es):
    • Date
    • Thread