• 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
Re: trouble with files and folders in Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: trouble with files and folders in Finder
      • From: Shane Stanley via AppleScript-Users <email@hidden>
References: 
 >trouble with files and folders in Finder (From: WalterStuartBushell via AppleScript-Users <email@hidden>)
 >Re: trouble with files and folders in Finder (From: Yvan KOENIG via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: trouble with files and folders in Finder
  • Next by Date: Re: trouble with files and folders in Finder
  • Previous by thread: Re: trouble with files and folders in Finder
  • Next by thread: Re: trouble with files and folders in Finder
  • Index(es):
    • Date
    • Thread