Tag: AppleScript
osascript scriptname
set frontmostApp to path to frontmost application tell application "Finder" set appName to displayed name of frontmostApp end tell activate application appName tell application "System Events" tell application process appName keystroke "c" using command down end tell end tell tell application appName set theText to the clipboard as string end tell
tell application "Google Chrome" to tell active tab of window 1
tell application "Google Chrome" get properties of window 1 end tell