Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
tell application "System Events"
click menu item "Turn Off Home Sharing (activeplum@gmail.com)" of menu "Advanced" of menu bar 1 of application process "iTunes" of application "System Events"
end tell

on adding folder items to this_folder after receiving added_items
tell application "Finder"
set torrents_home to "Torrents" as string
try
if not (exists folder torrents_home of this_folder) then
make new folder at this_folder with properties {name:torrents_home}
end if
set the destination_folder to folder torrents_home of this_folder as alias
repeat with i from 1 to number of items in added_items
set this_item to item i of added_items
set {file_name, name_ext} to {name, name extension} of this_item
if name_ext is "torrent" then
move this_item to destination_folder
end if
end repeat
on error error_message number error_number
display dialog error_message buttons {"OK"} default button 1
end try
end tell
end adding folder items to
set volume output volume 100 tell application "iTunes" activate set sound volume to 100 reveal user playlist "!Alarm Playlist" play track 2 of user playlist "!Alarm Playlist" end tell
set myCount to count (the clipboard) set myWords to count words of (the clipboard) set myParas to count paragraphs of (the clipboard) display dialog "Characters: " & myCount & ¬ return & ¬ "Words: " & myWords & ¬ return & ¬ "Paragraphs: " & myParas
tell application "Finder"
activate
open ("/Users/YourName/Folders/Subfolder/" as POSIX file)
end tell
Applescript общего назначения в повседневной офисной работе