Proper use of set myFiles to every file in folder
Proper use of set myFiles to every file in folder
- Subject: Proper use of set myFiles to every file in folder
- From: Alex Zavatone <email@hidden>
- Date: Tue, 16 Feb 2010 11:42:26 -0600
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:" Any ideas? |
_______________________________________________
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