Re: Coercing an array of aliases to files
Re: Coercing an array of aliases to files
- Subject: Re: Coercing an array of aliases to files
- From: Alex Zavatone <email@hidden>
- Date: Tue, 09 Feb 2010 19:21:22 -0600
Yeah. I mean a list. I just looked at the coercion types and sadly, every item does not work for this.
I was doing this so I could get a bunch of files and of those files, only get the PNG ones. I ended up walking the list and using "ends with" instead of trying to get "the name extension" and everything worked.
Thanks.
On Feb 9, 2010, at 6:41 PM, Stockly, Ed wrote:
When you say ‘array’ do you mean a list?
{item, item, item}
An ‘alias’ in appleScript is simply a reference to a file.
Do you want to create an ‘alias file’ to the file referenced by each alias in a list?
If so:
Set someItems to {}
Repeat with thisItem in folderList
Set the end of someItems to make new alias file at desktop to thisItem
End repeat
the “every item of “ construct doesn’t work on lists.
HTH,
ES
|
_______________________________________________
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