Created
May 1, 2012 20:27
-
-
Save macgeeky/2571102 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kopierURL() | |
tell application "Safari" to activate | |
test() | |
-- metoder -- | |
on kopierURL() | |
tell application "System Events" | |
activate application "Google Chrome" | |
keystroke "l" using {command down} | |
keystroke "c" using {command down} | |
end tell | |
end kopierURL | |
on appIsRunning(appName) | |
tell application "System Events" to (name of processes) contains appName | |
end appIsRunning | |
on test() | |
if appIsRunning("Safari") then | |
tell application "Safari" | |
add reading list item (the clipboard) | |
quit | |
end tell | |
else | |
delay 4 | |
tell application "Safari" | |
add reading list item (the clipboard) | |
quit | |
end tell | |
end if | |
end test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment