• 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
When even UI Scripting doesn't do it...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When even UI Scripting doesn't do it...


  • Subject: When even UI Scripting doesn't do it...
  • From: Chris Garaffa <email@hidden>
  • Date: Mon, 12 Jan 2004 23:41:53 -0500

Where does a scripter turn when UI Scripting doesn't work?

On Panther, I'm trying to create a stay-open script to take an image from the macam application[1] and save it, then probably upload it to my public web server. Unfortunately, the macam application isn't scriptable (not even the Core Suite). I've tried running UI Element Inspector and UI Browser on it, but they see nothing but the menu bar and its menus. So far, I've gotten macam to take the picture, switch to the picture window and initiate the save process, but from there on everything fails. I've tried, as on Apple's site:
tell window "Untitled"
tell sheet 1
set value of text field 1 to "something"
end tell
end tell
enclosed in the proper tell System Events/tell Macam blocks. on the "set value" line, Script Editor reports "System Events got an error: NSReceiverEvaluationScriptError: 4" The thing is, macam seems to be using a standard save panel.

So, when even UI Scripting won't yield results, what does everyone here do?
(Of course, I'm going to look into adding AppleScript support to macam myself, since it's open source. Being my first time, it's going to take quite a while... so I'm hoping for a solution in the mean time.)



[1] <http://webcam-osx.sourceforge.net>

--
Chris Garaffa
email@hidden
_______________________________________________
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: When even UI Scripting doesn't do it...
      • From: Daniel Jalkut <email@hidden>
    • Re: When even UI Scripting doesn't do it...
      • From: Gary Lists <email@hidden>
  • Prev by Date: Re: Newbie scripting question
  • Next by Date: re: Hiding Application Processes
  • Previous by thread: Re: Speakable Items
  • Next by thread: Re: When even UI Scripting doesn't do it...
  • Index(es):
    • Date
    • Thread