RE: Finder scripting: OS 9 vs OS X
RE: Finder scripting: OS 9 vs OS X
- Subject: RE: Finder scripting: OS 9 vs OS X
- From: John Delacour <email@hidden>
- Date: Fri, 16 Aug 2002 09:13:42 +0100
At 4:10 pm -0400 15/8/02, Fox, Christopher B wrote:
>
John:
>
>
This coersion to a string fails on my machine with a type descriptor
>
error. Nor can I coerce to an alias.
What do you see in your event log when you run your original failing script? That should give you a clue. I can't test it till I get the G4 back.
choose folder -- should result in alias "...."
set theFiles to every file of result
repeat with aFile in theFiles
-- aFile will be a reference to item n of theFiles
set fileInfo to info for aFile
end repeat
I know things are more intractable in OS X and that, as I recall, you can't coerce a 'document file' directly to 'alias pathstring', but a few moments of experimentation with the event log open will supply a solution.
JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.