S
sand
Registriert
Thread Starter
- Dabei seit
- 30.07.2009
- Beiträge
- 2
- Reaktionspunkte
- 0
Ich möchte gerne mit Applescript eine Tastatureingabe simulieren: das Applescript sollte in Photoshop simulieren dass die alt (Option) Taste gedrückt ist. Dafür habe ich 2 Scripte: alt-Taste drücken und alt-Taste loslassen. Leider funktioniert mein Script nicht. Woran kann das liegen?
Hier der Code:
tell application "Adobe Photoshop CS4"
activate
tell application "System Events"
tell process "Adobe Photoshop CS4"
key down option
end tell
end tell
end tell
und
tell application "Adobe Photoshop CS4"
activate
tell application "System Events"
tell process "Adobe Photoshop CS4"
key up option
end tell
end tell
end tell
Ändere ich "key down option" zb in "key down space" für einen Tastenanschlag der Leertaste gibt es keine Probleme. Nur option funktioniert nicht.
Testweise habe ich das Script für Textedit umgeschrieben und es kommt sogar ein "a" als Tastenanschlag bei "key down option" heraus.
Vielen Dank für eure Hilfe
Hier der Code:
tell application "Adobe Photoshop CS4"
activate
tell application "System Events"
tell process "Adobe Photoshop CS4"
key down option
end tell
end tell
end tell
und
tell application "Adobe Photoshop CS4"
activate
tell application "System Events"
tell process "Adobe Photoshop CS4"
key up option
end tell
end tell
end tell
Ändere ich "key down option" zb in "key down space" für einen Tastenanschlag der Leertaste gibt es keine Probleme. Nur option funktioniert nicht.
Testweise habe ich das Script für Textedit umgeschrieben und es kommt sogar ein "a" als Tastenanschlag bei "key down option" heraus.
Vielen Dank für eure Hilfe