Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dylanweber

macrumors newbie
Original poster
Jul 14, 2009
28
0
USA
The script I have so far is:

Code:
set setLocation to text returned of (display dialog "Put path below (can contain ~)" default answer "~/" buttons {"OK", "Cancel"} default button 1)
tell application "Finder" to activate
tell application "System Events" to keystroke "G" using {command down, shift}
tell application "System Events" to keystroke setLocation
tell application "System Events" to keystroke return

Is there a better script then that? If there is could you please reply.
______________________________
PROBABLY MADE ON A MAC
:apple:
APPLESCRIPT
______________________________
 
There's probably a Finder way, but this should work as well:
Code:
set setLocation to text returned of (display dialog "Put path below (can contain ~)" default answer "~/" buttons {"OK", "Cancel"} default button 1)
do shell script "open " & setLocation
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.