Weird "tell" invocation problem and "log" problem
Weird "tell" invocation problem and "log" problem
- Subject: Weird "tell" invocation problem and "log" problem
- From: David Hoerl <email@hidden>
- Date: Sun, 13 Jan 2013 10:04:09 -0500
I have three Services using a Run Script object that is virtually the
same. The Service lets users send an iWork document as an email
attachment converted to the MS format corresponding to the specific
iWork app.
1) tell issue
So what's weird is the Service works fine when run from Automator, but
fails when run from the Services menu.
I finally tracked it down to this:
set myApp to "Pages"
...
tell application myApp
...
For some reason this usages fails in the Service, works in Automator.
Can anyone explain why?
2) logging
If I do this:
log "Call pages"
tell application "Pages"
log "Hah! Inside pages"
Console shows the first log statement, but not the second. Is there
someway to get "log" to work in a tell block?
David
PS: the error in 1:
1/13/13 9:48:54.293 AM
com.apple.automator.xpc.workflowServiceRunner[11708]:
WorkflowServiceRunner received error running Workflow Service at
/Volumes/Data/Users/dhoerl/Library/Services/Tester.workflow: The action
“Run AppleScript” encountered an error.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden