Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

steevg

macrumors member
Original poster
Aug 5, 2008
45
0
Hi guys,

Any idea why, when I run my 10.6.4 script on a 10.4.11 powerbook, I get the following message:

tell application "Finder"
get every file of alias "USBDRIVE:"
{alias "USBDRIVE:EV_0415.MPG"}
"Can't make alias \"CFCARD:EV_0415.MPG\" into type «class alst»."

The script wrks perfectly on the newer OS, and though trying POSIX paths, and inserting "/volumes/" before USBDRIVE ( ie: set sourceFolder to "/volumes/USBDRIVE" as alias ), still it keeps reporting the above "class alst" error.

Would be good to understand why this is happening and how to resolve it - I doubt this will be the last error of this kind while trying to run the newer script on the older machine.

Thanks in advance
 
Have you tried looking at the scripting dictionary for Finder, in AppleScript Editor, on both 10.6.6 and 10.4.11? That will almost certainly give you some clues as to what's going on.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.