• 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: How to get a string of full paths from all files inside a folder (including subfolders)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get a string of full paths from all files inside a folder (including subfolders)


  • Subject: Re: How to get a string of full paths from all files inside a folder (including subfolders)
  • From: "S. J. Cunningham via AppleScript-Users" <email@hidden>
  • Date: Tue, 7 Dec 2021 12:35:44 -0500

Just use the :find: command:

set myMegaString to do shell script "find ~/Public"



On Dec 7, 2021, at 10:09 AM, Bert Groeneveld via AppleScript-Users wrote:

> Hi, I need a string of full paths of all files (more than 10,000) inside a
> certain folder (important: including all subfolders).
>
> I always used SatimageOSAX to achieve this, which works really fast.
>
> But now on MacOSX Catalina there seems to be a difference between referring a
> local folder and a folder on a server volume (Server has High Sierra
> installed):
>
> Below script (run from a Catalina Mac) still works fine on a local folder:
>
> -- folder on local harddisk"
> use application "SatimageOSAX"
> set myMegaString to (list files alias
> "Macintosh_HD:Users:bertus:Documents:Applescript:Out of Home:Out of Home
> subomgeving:HiRes_Images (lokaal):FarmFrites:") -- as string
>
> But exactly the same script doesn’t work on a folder from a server volume
> (invalid file reference it says):
>
> --folder on a server volume:
> use application "SatimageOSAX"
> set myMegaString2 to (list files alias "Klanten_A_Z:O:OutOfHome Partners:OOH
> BEELDBANK:FarmFrites:") -- as string
>
>
> Below is an example (of a string of 2 files) of what I need eventually:
>
> Macintosh_HD:Users:bertus:Documents:Applescript:Out of Home:Out of Home
> subomgeving:HiRes_Images (lokaal):FarmFrites:931003_Farm Frites Sweet Potato
> Fries_300dpi_780x1181px_Y_NR-1456.jpgMacintosh_HD:Users:bertus:Documents:Applescript:Out
>  of Home:Out of Home subomgeving:HiRes_Images (lokaal):FarmFrites:931003_Farm
> Frites Sweet Potato Fries_1181x1020px_Y_NR-800.jpg
>
> How can I do that on a folder on a server volume while still using
> SatimageOSAX?
> OR: how can I do this without using SatimageOSAX? Is there some "do shell
> script" to achieve this? Can anyone post example code? I really shouldn’t
> know how to do this myself.
>
> Thanks in advance for any help,
> Bert Groeneveld.
> _______________________________________________
> 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

  • Follow-Ups:
    • Re: How to get a string of full paths from all files inside a folder (including subfolders)
      • From: Shane Stanley via AppleScript-Users <email@hidden>
    • Re: How to get a string of full paths from all files inside a folder (including subfolders)
      • From: "Stockly, Ed via AppleScript-Users" <email@hidden>
References: 
 >How to get a string of full paths from all files inside a folder (including subfolders) (From: Bert Groeneveld via AppleScript-Users <email@hidden>)

  • Prev by Date: Re: How to get a string of full paths from all files inside a folder (including subfolders)
  • Next by Date: Re: How to get a string of full paths from all files inside a folder (including subfolders)
  • Previous by thread: Re: How to get a string of full paths from all files inside a folder (including subfolders)
  • Next by thread: Re: How to get a string of full paths from all files inside a folder (including subfolders)
  • Index(es):
    • Date
    • Thread