ludes
Gast
Hey!
Ich würde gerne den text von einem sms in einem file speichern und zwar mit dem namen, nummer des senderrs...
nur weiß ich leider nicht, wie ich da vorgehen sollte.
Hab es zwar irgendwie geschafft den text in ein file zu bringen jedoch muss dazu der focus auf dem jeweiligen textarea wo die message angezeigt wird liegen...
kann ja mal den code posten...
bitte um verbesserungsvorschläge!
tell application "BluePhoneMenu"
activate
tell the front document
set this_text to the clipboard
tell application "System Events"
keystroke "a" using {command down}
keystroke "c" using {command down}
keystroke "w" using {command down}
end tell
end tell
end tell
tell application "TextEdit" to activate
tell application "System Events"
tell process "TextEdit"
open "/Users/ludi/Desktop/hallo.rtf"
tell application "System Events"
keystroke "v" using {command down}
tell application "System Events" to keystroke (ASCII character 13)
tell application "System Events" to keystroke (ASCII character 13)
keystroke "s" using {command down}
-- keystroke "w" using {command down}
end tell
end tell
end tell
Ich würde gerne den text von einem sms in einem file speichern und zwar mit dem namen, nummer des senderrs...
nur weiß ich leider nicht, wie ich da vorgehen sollte.
Hab es zwar irgendwie geschafft den text in ein file zu bringen jedoch muss dazu der focus auf dem jeweiligen textarea wo die message angezeigt wird liegen...
kann ja mal den code posten...
bitte um verbesserungsvorschläge!
tell application "BluePhoneMenu"
activate
tell the front document
set this_text to the clipboard
tell application "System Events"
keystroke "a" using {command down}
keystroke "c" using {command down}
keystroke "w" using {command down}
end tell
end tell
end tell
tell application "TextEdit" to activate
tell application "System Events"
tell process "TextEdit"
open "/Users/ludi/Desktop/hallo.rtf"
tell application "System Events"
keystroke "v" using {command down}
tell application "System Events" to keystroke (ASCII character 13)
tell application "System Events" to keystroke (ASCII character 13)
keystroke "s" using {command down}
-- keystroke "w" using {command down}
end tell
end tell
end tell