• 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
GUI scripting - how to script the display dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GUI scripting - how to script the display dialog


  • Subject: GUI scripting - how to script the display dialog
  • From: Armin Egginger <email@hidden>
  • Date: Mon, 28 Apr 2003 15:58:14 +0200

Hi Scripter,

I script the webcam application "macam" with the GUI SystemEvent
Scripting.

It works, but I want to save the image, but didn't find a possibilty to
script the "save" display dialog. Any ideas?

MacOS X.2.5, appleScript 2.0 beta, macam 0.8

if my do_menu("Macam", "Steuerung", "Bild aufnehmen") is false then
error number -128

on do_menu(app_name, menu_name, menu_item)
try
-- bring the target application to the front
tell application app_name
activate
end tell
tell application "System Events"
with timeout of 300 seconds -- 5 minutes
tell process app_name
tell menu bar 1
click menu item 2 of menu 5
click menu item 9 of menu 7
click menu item 5 of menu 3
end tell
-- How to script the open save dialog?
--tell (display dialog)
--click button "save"
--end tell
end tell
end timeout
end tell
return true
on error error_message
return false
end try
end do_menu


The appname, menu_name, menu_item is in german - I changed it in
numbers for an international use!


happy filemaking


Armin Egginger
_______________________________________________
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.

  • Prev by Date: Re: TIDs and other questions
  • Next by Date: Re: TIDs and other questions
  • Previous by thread: re: transfer message from Mail to FileMaker - no "returns" in the message
  • Next by thread: Applescript to mount smb shares
  • Index(es):
    • Date
    • Thread