Ich versuche, ein Shortcut-Skript in Spark zu schreiben, um das Terminal zu öffnen.
on run {input, parameters}
tell application "Utilities/Terminal" // tried Utilities:Terminal and Terminal too
reopen
activate
end tell
end run
wie kann das funktionieren? Ich verwende 10.10.2 als OSX-Version.
Dies ist die richtige Methode:
tell application "Terminal"
if not (exists window 1) then reopen
activate
-- insert your code here
end tell
BEARBEITEN Sie können neue Fenster mit do script öffnen
tell application "Terminal"
do script ""
end tell
tell application "Terminal"
activate
tell application "System Events" to keystroke "n" using {command down}
end tell
Sollte den Job machen.
Thellimist
adayzdone
Thellimist
Rakshitha Muranga Rodrigo