Re: Subroutine not passing right event?
Re: Subroutine not passing right event?
- Subject: Re: Subroutine not passing right event?
- From: Emmanuel <email@hidden>
- Date: Mon, 30 Jun 2003 21:15:45 +0200
At 12:35 PM -0400 30/06/03, Grimm, Kenneth wrote:
>
Hi all:
>
>
(psuedo code)
>
>
tell Finder
>
repeat with thisFile in myFolderContents
>
getPhotoInfo(thisFile)
>
>
on getPhotoInfo(thisFile)
>
tell application "Image Info PPC"
>
get image info for thisFile <<<<<<<<<
>
>
Using OS 9.2.2 and some excellent editor [1]
You are passing a Finder's object to "Image Info PPC". I would try coercing it to a public type, string or alias: repeat with thisFile, set thisFile to thisFile as alias, getPhotoInfo(thieFile).
When you carry a Finder's object, it still knows it belongs to Finder even outside a "tell" block:
------------------
tell app "Finder" to set x to window 1
get bounds of x -- <---- really and implicitly calls the Finder
------------------
Emmanuel
[1] No advertisement on this list, Kenneth, sorry. [2]
[2] ;-)
_______________________________________________
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.