Search the Community
Showing results for tags 'System-Events'.
Found 1 result
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.