|
|
|
Open any URL from any app with Butler and AppleScript
For some reason when I do this the box to type in (that box must have a name) is not in focus (I have to click in the box to be able to type, otherwise I'm still in the application I was in before I typed the shortcut). I put the script in Butler. Is this my set-up or the way Butler works?
If I make it an AS script and put in my Scripts folder, and I run the script from the Scripts Menu, the text fox comes up in focus. I'd love to use this because it would save steps and it is fast. I'm also going to change one of the buttons to Cancel because I have so (too) many shortcuts defined and I get the wrong one once in a while. Or is there another way to activate Cancel? "esc" doesn't work. Second question: can Safari be changed to "default browser"? I sometimes change my default browser to Webkit or Firefox. Thanks for posting this. --- Hermosa Beach, CA USA
Open any URL from any app with Butler and AppleScript
If you wrap the display dialog in a "tell application" then the dialog will be brought to the front.
Here is my modification of the first couple of lines: tell application "Finder" display dialog "URL?" default answer "" buttons {"cancel", "open"} default button 2 set {text returned:theURL, button returned:okay} to result end tell if theURL is "" or okay is "cancel" then error number -128 -- cancel
Open any URL from any app with Butler and AppleScript
Add:
to the beginning, and it will bring the dialog box to front.
dt
|
SearchFrom our Sponsor...What's New:HintsNo new hintsComments last 2 days
Links last 2 weeksNo recent new linksWhat's New in the Forums?
The Editor's Corner...Here are some of my (robg) other projects...
Hints by TopicNews from Macworld
The macosxhints PollWhat version of OS X are you running as your main OS?
Other polls | 11,375 votes | 42 comments
|
|
Copyright © 2009 Mac Publishing LLC (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Powered by Geeklog Created this page in 0.04 seconds |
|