Applescript: Get directory dropped on
Posted
by Daniel
on Stack Overflow
See other posts from Stack Overflow
or by Daniel
Published on 2010-06-15T06:20:25Z
Indexed on
2010/06/15
6:22 UTC
Read the original article
Hit count: 248
applescript
|folder
Hi,
I have a applescript with the following:
on open dir
tell application "Finder"
tell application "Terminal"
activate
tell application "Terminal"
do script "cd " & dir
end tell
end tell
end tell
end open
It works, and gets the directory thats dropped on it, but it cd's into cd Macintosh HD:Users:USER:Desktop:C Files:
Is there any way to replace : with / ? in applescript?
© Stack Overflow or respective owner