Re: Move-copy-alias selected file to chosen destination folder
Re: Move-copy-alias selected file to chosen destination folder
- Subject: Re: Move-copy-alias selected file to chosen destination folder
- From: Yvan KOENIG <email@hidden>
- Date: Fri, 19 Apr 2019 20:48:04 +0200
Oops.
It appears that I forgot to test the copy function.
Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France) vendredi
19 avril 2019 20:47:59
> Le 19 avr. 2019 à 18:38, Deivy Petrescu <email@hidden> a écrit :
>
>
> Hi Barry, make the following changes to the script:
> changes in capital letters
>
>>> set theMethod to button returned of (display dialog "Do you want to move,
>>> copy or alias the selected file to the destintation folder?" buttons
>>> {"Move", "Copy", "Alias"} default button "Move")
>>> set theDestinationFolder to (choose folder with prompt "Select your
>>> destination")
>>> tell application "Finder"
>>> set mySelection to the selection AS ALIAS LIST — not really necessary,
>>> but expedites things.
>>>
>>> if theMethod is "Move" then
>>> repeat with aSel in mySelection
>>> move aSel to theDestinationFolder
>>> end repeat
>>> else if theMethod is "Copy" then
>>> repeat with aSel in mySelection
>>> DUPLICATE aSel to theDestinationFolder —optional—
>>> REPLACING YES (or NO)
>>> end repeat
>>> else if theMethod is "Alias" then
>>> repeat with aSel in mySelection
>>> set itsName to name of aSel
>>> set anAlias to make alias to aSel at
>>> theDestinationFolder
>>> set name of anAlias to itsName
>>> end repeat
>>> end if
>>> end tell
>>>
>>> Yvan KOENIG running High Sierra 10.13.6 in French (VALLAURIS, France)
>>> mercredi 17 avril 2019 10:59:49
>> _______________________________________________
>> 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
>
> Deivy Petrescu
> 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
_______________________________________________
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