Re: Getting a subset list of files
Re: Getting a subset list of files
- Subject: Re: Getting a subset list of files
- From: Jim Brandt <email@hidden>
- Date: Sat, 02 Apr 2011 10:40:46 -0500
Yvan, you are so correct.
I've played around with the Linux "find" command and have managed to pull the items out this way, after manipulating the the string that's returned somewhat to turn it into a list. Thanks for the suggestion.
Here's what I've got so far, crude, but workable.
set Originals to POSIX path of "HD1:InfoMac:•Orginals" set MacD to "MACSCRPT Digest " & (do shell script ("date \"+%Y\"") as text) & "*"
set cmd to "find " & Originals & " -iname \"" & MacD & "\" -print0" -- -print0 returns a string with nil separators set OrgStr to (do shell script cmd) as text
set nil to ASCII character 0 -- make it into a list tell application "TextCommands" to set OrgList to split OrgStr using nil
Jim Why are you asking to the Finder which is really slow? Asking to System Events would be faster and I guess that there is a shell call doing the trick more faster.
Yvan KOENIG (VALLAURIS, France) samedi 2 avril 2011 15:46:52
|
_______________________________________________
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