mklement0 Posted May 6, 2013 Share Posted May 6, 2013 This may not be a bug, but it's worth noting: When you use open location to open a URL from inside an NSAppleScript action, it must be in the tell application "System Events" context, otherwise it will fail silently (as of Alfred 2.0.3 on OS X 10.8.3). For instance, to open URL "http://boston.com", you need to use the following: tell application "System Events" to open location "http://boston.com" # fails without `tell application "System Events" to` Note: If an action's sole purpose is to open a URL with the default handler, it is better to use the dedicated Open URL action type instead, which avoids this problem. Link to comment
Andrew Posted May 6, 2013 Share Posted May 6, 2013 Interesting Observation - I'm moving this to the Workflow Help section so others can benefit from it Link to comment
niels_bom Posted October 15, 2018 Share Posted October 15, 2018 Silently failing sucks so hard. I want 45 minutes of my life back Apple... Link to comment
deanishe Posted October 15, 2018 Share Posted October 15, 2018 Yeah, just don't use Run NSAppleScript unless you have a very good reason. Use the regular Run Script instead. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now