endirico
Gast
Habe mir vorhin SafariScript installiert und würde jetzt gerne das mitgelieferte Script für eine Suchanfrage für eine Auswahl auf Wikipedia so umwurschteln, dass das ganze in einem neuen Fenster (oder neuen Tab) passiert.
Hier das Script:
tell application "Safari"
activate
try
set oldClipboard to the clipboard
on error
set oldClipboard to ""
end try
try
tell application "System Events"
keystroke "c" using command down
set dieAuswahl to the clipboard
end tell
set myURL to "http://de.wikipedia.org/wiki/" & dieAuswahl
set URL of (document of window 1) to myURL
on error x
activate me
display dialog x
end try
try
set the clipboard to oldClipboard
end try
end tell
Jemand eine Idee? Bin selbst leider Volldilettant in Sachen AppleScript ...
Hier das Script:
tell application "Safari"
activate
try
set oldClipboard to the clipboard
on error
set oldClipboard to ""
end try
try
tell application "System Events"
keystroke "c" using command down
set dieAuswahl to the clipboard
end tell
set myURL to "http://de.wikipedia.org/wiki/" & dieAuswahl
set URL of (document of window 1) to myURL
on error x
activate me
display dialog x
end try
try
set the clipboard to oldClipboard
end try
end tell
Jemand eine Idee? Bin selbst leider Volldilettant in Sachen AppleScript ...