The script I have so far is:
Is there a better script then that? If there is could you please reply.
______________________________
PROBABLY MADE ON A MAC

APPLESCRIPT
______________________________
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

APPLESCRIPT
______________________________