Different results from "Get Value of Variable"
Different results from "Get Value of Variable"
- Subject: Different results from "Get Value of Variable"
- From: Trent Himes <email@hidden>
- Date: Thu, 21 Oct 2010 17:10:59 -0600
I'm trying to create a workflow that will copy some selected text from a web page.
I have actions to get the url and display the page in Safari. I then have a "Get Value of Variable" action which runs a script that I pilfered from an earlier post:
set appName to "Safari" tell application "System Events" set process appName's frontmost to true keystroke "c" using command down end tell
The final action is "Get Contents of Clipboard"
My problem is this: When I run the workflow, the content of the clipboard contains the URL + the selected text from the page. I don't want to url, just what was copied.
If I check the option "Show this action when workflow runs" (on the Get Value of Variable), and manually select the script, then it works perfectly. (No url prepended to the clipboard.)
Any ideas why I'm getting different results? Any suggestions on how to get it to be fully automated, so I don't have to manually select the script when running?
Many thanks in advance.
|
_______________________________________________
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