Re: trouble with files and folders in Finder
Re: trouble with files and folders in Finder
- Subject: Re: trouble with files and folders in Finder
- From: WalterStuartBushell via AppleScript-Users <email@hidden>
- Date: Sun, 17 Nov 2019 09:36:49 -0500
Thanks! Terminology is so important. Next problem is taking care of the case
where there is only one file of have they
taken care of that?
Perhaps the moral is to use Eunuchs scripting to handle files.
See
<http://mirror.informatimago.com/next/developer.apple.com/technotes/tn2002/tn2065.html>
Somehow I could not find this on the apple site, but it tells you all you need
to know, modulo Unix knowledge.
> On Nov 17, 2019, at 5:11 AM, Yvan KOENIG via AppleScript-Users
> <email@hidden> wrote:
>
> set UG to "Ug 2:"
> set path2Folder to (path to music folder as text) & UG --> "SSD
> 1000:Users:**********:Music:Ug 2:"
>
> tell application "Finder"
> if exists folder path2Folder then
> set Y to files of folder path2Folder as alias list
> else
> error "The folder “" & path2Folder & "” doesn't exist!"
> end if
> end tell
>
—
A unix salesperson, Lenore
Loved her job, but loved the beach more.
She devised a way
To combine work and play:
She sells C-shells by the seashore.
_______________________________________________
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