• 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: I get a “Property does not exists” at the 12th times I access it in a loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I get a “Property does not exists” at the 12th times I access it in a loop


  • Subject: Re: I get a “Property does not exists” at the 12th times I access it in a loop
  • From: KOENIG Yvan <email@hidden>
  • Date: Sun, 10 Aug 2008 15:05:52 +0200


Le 10 août 2008 à 11:52, Emile Schwarz a écrit :

Hi,

in a “introspection like” repeat loop, I scan the Menu Items of the Finder’s Apple menu and my loop break with "La variable MIPositionList n’est pas définie." [variable MIPosition is not defined)

Not defined on the 12th loop, but defined on the previous 11... So the reported error string is not reliable and the error (like the truth) is elsewhere.

Some can find that funny (read my previous post): the error happens on a Menu Item that... does not exists in my Finder’s Apple Menu.

Far below is the partial log of the script: loop #11 and the error.

Last Breaking News:

1. Press the Shift Key and you will see “Forcer à quitter Finder” instead of “Forcer à quitter…”

2. Press the Option Key and you will see “Fermer la session Emile Schwarz” instead of “Fermer la session Emile Schwarz…”

Go figure!


Hello Émile.

This kind of behavior is one of the reasons why I never call menu item by their name but by their numeric index.


Yvan KOENIG (from FRANCE dimanche 10 août 2008 15:05:46)


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >I get a “Property does not exists” at the 12th times I access it in a loop (From: Emile Schwarz <email@hidden>)

  • Prev by Date: I get troubles with Finder's Apple Menu Menu Items: why ?
  • Next by Date: Re: I get troubles with Finder's Apple Menu Menu Items: why ?
  • Previous by thread: I get a “Property does not exists” at the 12th times I access it in a loop
  • Next by thread: I get troubles with Finder's Apple Menu Menu Items: why ?
  • Index(es):
    • Date
    • Thread