Re: Finder "duplicate" requirements
Re: Finder "duplicate" requirements
- Subject: Re: Finder "duplicate" requirements
- From: Yvan KOENIG <email@hidden>
- Date: Sat, 27 Jun 2015 16:42:49 +0200
Le 27/06/2015 à 16:38, Jean-Christophe Helary < email@hidden> a écrit :
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.
Would be helpful to insert : use scripting additions
at the very beginning of your script.
Yvan KOENIG (VALLAURIS, France) samedi 27 juin 2015 16:42:45
|
_______________________________________________
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