Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 4, 2012, 12:33 PM   #1
hepcat72
macrumors newbie
 
Join Date: Apr 2010
Why does't this script add a face in iPhoto?

Hi,

I want to create a script that I can assign to a keyboard shortcut that will allow me to add a face to a displayed iPhoto pic. I created an automator workflow that does it, but it takes between 5-10 seconds to run (not the boost in efficiency I was looking for). I wrote a script that I was sure would do it, but while it runs without error, it does't actually add a face. Here's the script. Anyone have any idea why it doesn't work or how to fix it? I had used the Accessibility inspector and an applescript that generates the scripting interface to iPhoto to show me the scriptable elements used in this script:

Code:
tell application "iPhoto"
activate tell application "System Events"
tell process "iPhoto"
click (static text 2 of window 1) display dialog "DEBUG: Value of static text: " & (value of static text 2 of window 1)
end tell
end tell
end tell
Incidentally, the debug message shows the string to be "Add a face...".

Thanks,
Rob
hepcat72 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Script to add to iTunes without copying file? MoodyM Mac Programming 1 Aug 12, 2013 09:15 AM
Shell Script to Sync iPhoto ajbudis Mac Programming 0 Jun 30, 2013 12:52 PM
iPhoto - How do I add faces on a video? kolakube Mac Applications and Mac App Store 4 Mar 13, 2013 11:17 AM
Iphoto 11 - how do I reset faces/face detection? DarrenUK Mac Applications and Mac App Store 0 Jan 10, 2013 02:18 PM
iPhoto face tagging and facebook mcbates23 Mac Applications and Mac App Store 1 Aug 21, 2012 08:29 PM

Forum Jump

All times are GMT -5. The time now is 07:47 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC