How to get a string of full paths from all files inside a folder (including subfolders)
How to get a string of full paths from all files inside a folder (including subfolders)
- Subject: How to get a string of full paths from all files inside a folder (including subfolders)
- From: Bert Groeneveld via AppleScript-Users <email@hidden>
- Date: Tue, 7 Dec 2021 16:09:00 +0100
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