Re: Finder "duplicate" requirements
Re: Finder "duplicate" requirements
- Subject: Re: Finder "duplicate" requirements
- From: Jean-Christophe Helary <email@hidden>
- Date: Sun, 28 Jun 2015 07:59:36 +0900
Thank you Yvan for the suggestion.
In fact I do have "use scripting additions" in the script (not at the beginning though) as was suggested by Shane when he described here a number of functions to handle tags. I basically copied all he gave here including "use scripting additions" and use framework "Foundation".
The functions are at the bottom of my script and thus the two line are just above them.
And the duplicate function will not work if I don't comment out "use framework "Foundation"".
Jean-Christophe
>>
> On Jun 27, 2015, at 23:42, Yvan KOENIG <email@hidden> wrote:
>
>
>> 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
_______________________________________________
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