• 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: Alias listfrom find shell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Alias listfrom find shell
      • From: Jay Louvion <email@hidden>
  • Prev by Date: Launching a shell script nested inside a bundle
  • Next by Date: Bug fixed?
  • Previous by thread: Launching a shell script nested inside a bundle
  • Next by thread: Re: Alias listfrom find shell
  • Index(es):
    • Date
    • Thread