Why would this script throw an error when used in an Alfred workflow but work when launched in Script Editor?
-- from https://gist.github.com/sillygwailo/1236890
property theURL : ""
tell application "Safari"
set theURL to URL of current tab of window 1
tell application "Google Chrome"
if (count of (every window where visible is true)) is greater than 0 then
tell front window
make new tab
make new window
set URL of active tab of window 1 to theURL
The error it throws in the debug console is:
See also here http://snpy.in/nRniak
Sorry for the n00b question.
Thanks for your help!