• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Subroutine not passing right event?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Subroutine not passing right event? (From: "Grimm, Kenneth" <email@hidden>)

  • Prev by Date: Re: Shut Down Items
  • Next by Date: Quark box origins in Classic
  • Previous by thread: Subroutine not passing right event?
  • Next by thread: [ANN] iList 1.4b8
  • Index(es):
    • Date
    • Thread