Applescript problem with 3.3
Hi there,
just found another Bug in the new Version. My "Apple Scripts" seems to be broken.
Here an example of the error and a script:
When I try to open the Script via Script menu I get an error window with the following contents:
Problem running script
The script at "/Users/jb/Library/ApplicationSupport/iTerm2/Scripts/A. OpenSerial2USB(kill with ctrl a k).scpt" failed.
The error was: "iTerm got an error: AppleEvent handler failed."
The error starts at byte 0 of the script.
Here ist the contents of the script file itself:
set myFilenamesList to paragraphs of (do shell script "ls /dev/tty.Repleo-PL2303*")
repeat with i from 1 to count of myFilenamesList set thisFileObject to item i of myFilenamesList -- do something with the file object "thisFileObject" --display dialog thisFileObject
tell application "iTerm"
activate
tell the current window
set newTab to (create tab with default profile)
tell the current tab
tell the current session
set name to thisFileObject
write text "screen " & name
end tell
end tell
end tell
end tell
end repeat
Any help welcome. Now for getting the scripts back working I downgraded to 3.2.8
Greetings from Germany