Hi everyone,
I am currently learing applescript and have a fairly basic problem that i can't work out. Heres the code:-
What this should do is display a dialog box and ask for a directory. For this i have set it up to open "/usr/bin/". The next part should open the directory but it does not. This part of the code is where the problem is and i can't figure it out.
Cheers, Richard
I am currently learing applescript and have a fairly basic problem that i can't work out. Heres the code:-
Code:
tell application "Finder"
set chosenDir to text returned of (display dialog "Open this directory" default answer "/usr/bin/")
open folder (POSIX file chosenDir)
end tell
What this should do is display a dialog box and ask for a directory. For this i have set it up to open "/usr/bin/". The next part should open the directory but it does not. This part of the code is where the problem is and i can't figure it out.
Cheers, Richard