Re: Invisible Unix "Icon" File
Re: Invisible Unix "Icon" File
- Subject: Re: Invisible Unix "Icon" File
- From: Christopher Stone <email@hidden>
- Date: Tue, 16 Nov 2010 15:01:34 -0600
On Nov 16, 2010, at 07:58, Luther Fuller wrote: The code that creates msgList is at the beginning of a very large 'tell application "Finder"' block. It was written to require aliases, hence my need to get an alias list. And it seems to be working as designed.
______________________________________________________________________
Hey Luther,
At times I've been stuck with Finder references and wanted an alias list. This is a quick way to convert:
set fldr to path to documents folder tell application "Finder" try set AppleScript's text item delimiters to return set itemList to text items of (items of fldr as string) repeat with i from 1 to length of itemList set item i of itemList to (item i of itemList as alias) end repeat on error errMsg number errNum beep display dialog "Error: " & errMsg & return & "Error Number: " & errNum end try end tell itemList
|
_______________________________________________
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