• 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
Finder "duplicate" requirements
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finder "duplicate" requirements


  • Subject: Finder "duplicate" requirements
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Sat, 27 Jun 2015 23:38:03 +0900

I've been struggling all day with a "duplicate file" command that would work in some context and not in others.

It took me a search on the net to eventually realise that duplicate "preferred" aliases to posix files.

But I could not find anything in the Finder dictionary that indicated that.

So the question is: are there requirements for commands that are not indicated in the dictionaries/language reference but that we're supposed to know ? And if yes, how can we know about them ? Are there other official references somewhere on the net ?


Jean-Christophe



ps: the problem I had was that the following line:

set properties of (duplicate POSIX file "/Path/to/file/stuff.pages" to arbitrary_folder with replacing) to {locked:false}

would work pretty much all the time *except* when the line:

use framework "Foundation"

was somewhere in the script.
 _______________________________________________
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


  • Follow-Ups:
    • Re: Finder "duplicate" requirements
      • From: Christopher Stone <email@hidden>
    • Re: Finder "duplicate" requirements
      • From: Shane Stanley <email@hidden>
    • Re: Finder "duplicate" requirements
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: Double Tell - Tell by Variable Question
  • Next by Date: Re: Finder "duplicate" requirements
  • Previous by thread: Re: Mac InDesign CS5.5 & fonts
  • Next by thread: Re: Finder "duplicate" requirements
  • Index(es):
    • Date
    • Thread