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

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


  • Subject: Re: When even UI Scripting doesn't do it...
  • From: Daniel Jalkut <email@hidden>
  • Date: Mon, 12 Jan 2004 23:19:56 -0800

I think it would be great for you to implement "proper AppleScript support" to accomplish what you want, but in the meantime, I would try to figure out why the app is not responding as expected to the accessibility APIs.

I have been looking at accessibility lately, so I took a peek at this application. I didn't really find anything interesting except that I can get the windows to show up - by launching macam from the command line instead of double clicking it. That is, if you open Terminal and navigate to the executable:

cd macam.app/Contents/MacOS
./macam

Suddenly the windows are showing up in UI browser, etc. This makes me suspicious of dependencies on environment variables or perhaps the current working directory.

Maybe that can at least be a workaround for you in the mean time.

Daniel

On Jan 12, 2004, at 8:41 PM, Chris Garaffa wrote:

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

References: 
 >When even UI Scripting doesn't do it... (From: Chris Garaffa <email@hidden>)

  • Prev by Date: Re: Hiding Application Processes
  • Next by Date: Re: Images and FMP
  • Previous by thread: Re: When even UI Scripting doesn't do it...
  • Next by thread: Re: When even UI Scripting doesn't do it...
  • Index(es):
    • Date
    • Thread