Re: Proper use of set myFiles to every file in folder
Re: Proper use of set myFiles to every file in folder
- Subject: Re: Proper use of set myFiles to every file in folder
- From: Alex Zavatone <email@hidden>
- Date: Tue, 16 Feb 2010 11:54:30 -0600
I'm an idiot. Forgot to wrap the lines in a Finder tell.
Thanks. - Alex On Feb 16, 2010, at 11:42 AM, Alex Zavatone wrote: Hi. I'm having a simple error here that has appeared to work in the past. I'm selecting a folder with choose folder and then trying to get all the files in that folder. Applescript then tells me it can't do that.
The code follows:
set myFolder to choose folder
set myFiles to every file of myFolder
The error message I'm getting is "Can't get every file of alias "Macintosh HD:Optimized PNG:."
In the Log window, the error message is a little more cryptic.
Result: error "Can’t get every file of alias \"Macintosh HD:Optimized PNG:mm_alert:\"." number -1728 from every file of alias "Macintosh HD:Optimized PNG:mm_alert:"
|
_______________________________________________
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