I’m writing a script that includes refreshing a session in Transmit but somehow it wouldn’t refresh though it didn’t return any error. Here’s the script:
tell application "Transmit"
tell current session of front document
set sel_ to their stuff selection
set mode_ to the text returned of (display dialog "enter mode" default answer "") as text
set name_ to the text returned of (display dialog "enter name of the new folder" default answer "") as text
set cmd_ to "mkdir -m " & mode_ & " " & sel_ & "/" & name_ as text
tell application "Terminal"
do script cmd_ in front window
end tell
-- refreshing
refresh list their stuff selection
--
end tell
end tell
Where did I do wrong?
Model: G4
AppleScript: AppleScript 1.10.3
Browser: Safari 417.8
Operating System: Mac OS X (10.4)