• 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
Subroutine not passing right event?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Subroutine not passing right event?
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Another Panther Query... (was Re: applescript url)
  • Next by Date: Re: applescript url
  • Previous by thread: Redeem Your Coupon-Get Your Apology Early (The Line is Long)
  • Next by thread: Re: Subroutine not passing right event?
  • Index(es):
    • Date
    • Thread