Subroutine not passing right event?
Subroutine not passing right event?
- Subject: Subroutine not passing right event?
- From: "Grimm, Kenneth" <email@hidden>
- Date: Mon, 30 Jun 2003 12:35:51 -0400
Hi all:
(psuedo code)
on open folderList
is it a single item?
is it a folder?
if yes, getContentsfolder(folderList)
end open
on getContentsfolder(folderList)
tell Finder
set myFolderContents to list folderList
repeat with thisFile in myFolderContents
if item is a folder, getContentsfolder(folderList)
else
getPhotoInfo(thisFile)
end if
end repeat
end tell
end getContentsfolder
on getPhotoInfo(thisFile)
tell application "Image Info PPC"
get image info for thisFile <<<<<<<<<
end tell
end getPhotoInfo
Using OS 9.2.2, Script Debugger
Problem: when the line marked <<<<<<<<< above, i get an error saying
"Finder" reported "File doesn't understand "get image info" command, not the
application in the tell block (Image Info PPC). I inserted a stop point just
before execution of the line, and the correct alias is being passed to the
"Image info PPC" line.
However, when i take just the code from the getPhotoInfo block out by
itself, it runs just fine.
Why is "Finder" capturing the command I am directing at the Image Info PPC
application?
Or is the subroutine logic wrong?
Ken Grimm
Prepress Manager
San Angelo Standard-Times
email@hidden
325-659-8357
_______________________________________________
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.