What the heck am I missing?
I have a simple script to extract file info. it works fine and returns the correct data (script below)
tell application "Finder"
set theFile to "users:bcuilla:desktop:test file.pages" as alias set fileInfo to info for theFile end tell
but i get a applescript error number -10004 in the editor when i view Replies (snippet below)
can anyone explain this? is it a bogus error?
Thanks
Bob Cuilla
tell application "Finder" info for alias "Macintosh HD:Users:bcuilla:Desktop:test file.pages" --> error number -10004 end tell tell current application info for alias "Macintosh HD:Users:bcuilla:Desktop:test file.pages" --> {name:"test file.pages", creation date:date "Saturday, May 19, 2012 6:34:23 PM", modification date:date "Saturday, May 19, 2012 6:36:43 PM", size:124434, folder:false, alias:false, package folder:false, visible:true, extension hidden:true, name extension:"pages", displayed name:"test file", default application:alias "Macintosh HD:Applications:iWork '09:Pages.app:", kind:"Pages Publication", file type:"file creator:"type identifier:"com.apple.iwork.pages.pages", locked:false, busy status:false, short version:"", long version:""} end tell Result: {name:"test file.pages", creation date:date "Saturday, May 19, 2012 6:34:23 PM", modification date:date "Saturday, May 19, 2012 6:36:43 PM", size:124434, folder:false, alias:false, package folder:false, visible:true, extension hidden:true, name extension:"pages", displayed name:"test file", default application:alias "Macintosh HD:Applications:iWork '09:Pages.app:", kind:"Pages Publication", file type:"file creator:"type identifier:"com.apple.iwork.pages.pages", locked:false, busy status:false, short version:"", long version:""}
|