Re: Alias listfrom find shell
Re: Alias listfrom find shell
- Subject: Re: Alias listfrom find shell
- From: John M <email@hidden>
- Date: Mon, 7 Nov 2005 23:05:13 +0000
Hi Jay,
Something like this?
--
set myResult to {}
set myName to system attribute "USER"
set myString to do shell script "find /Users/" & myName & " -name
\"" & myName & "*\""
set myParas to paragraphs of myString
repeat with myLine in myParas
set end of myResult to alias POSIX file myLine
end repeat
return myResult
--
Split the result into paragraphs. and loop through the items getting
'alias POSIX file' of the text.
Best wishes
John M
How does one convert the result from a find shell back into a
Finder compatible alias list ?
TIA,
J.
Jay Louvion
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden