• 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
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(no subject)


  • Subject: (no subject)
  • From: Barbara Mueller <email@hidden>
  • Date: Tue, 1 Apr 2003 12:24:04 +0200

Hallo,

Meanwhile I have solved the problem with "Application process whose creator type
" but there was another problem arising:

The following script should work independent of the application's name.
But as soon as I replace "AppleWorks 6" with theApp in line 3, the loop begins to turn endlessly and I have to stop the script manually.
Could anyone tell me why this is so or suggest me any other solution avoiding the application's name?

tell application "Finder" to open application file id "BOBO"
tell application "Finder" to set theApp to application file id "BOBO" as string
tell application theApp
activate
tell application "System Events"
tell process theApp
set MenuList to name of every menu of menu bar 1
set MenuCount to count of MenuList
repeat until MenuList contains "File"
set MenuList to name of every menu of menu bar 1
end repeat
say "I have opened the AppleWorks"
end tell
end tell
end tell

Barbara
_______________________________________________
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: (no subject)
      • From: John Delacour <email@hidden>
  • Prev by Date: Re: Find Window And the Find Dialog
  • Next by Date: Intermittent -916 error
  • Previous by thread: Re: Find Window And the Find Dialog
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread