Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
Why doesn't this applescript add a face in iPhoto?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="hepcat72" data-source="post: 1466105" data-attributes="member: 281303"><p>Hi,</p><p></p><p>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:</p><p></p><p>tell application "iPhoto"</p><p> activate</p><p> tell application "System Events"</p><p> tell process "iPhoto"</p><p> click (static text 2 of window 1)</p><p> display dialog "DEBUG: Value of static text: " & (value of static text 2 of window 1)</p><p> end tell</p><p> end tell</p><p>end tell</p><p></p><p>Incidentally, the debug message shows the string to be "Add a face...".</p><p></p><p>Thanks,</p><p>Rob</p></blockquote><p></p>
[QUOTE="hepcat72, post: 1466105, member: 281303"] 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: 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 [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
Why doesn't this applescript add a face in iPhoto?
Top