text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set clearButton to button 2 of text field 1 of contextWindow | fmGUI_ManageLayouts_Select.applescript |
select (first row of outline 1 of scroll area 1 of contextWindow whose value of text field 1 is layoutName) | fmGUI_ManageLayouts_Select.applescript |
fmGUI_ObjectClick_Button({buttonRef:clearButton}) | fmGUI_ManageLayouts_Select.applescript |
error "unable to fmGUI_ManageLayouts_Select - " & errMsg number errNum | fmGUI_ManageLayouts_Select.applescript |
set theTags to get concordance of record theRecord | Add Keywords to Tags.applescript |
set sourcePath to POSIX path of h & "Automation/Icons/Client.icns" #Path to where Folder icons are stored | Creat%20Client-Project%20Folders.applescript |
set sourcePath to POSIX path of h & "Automation/Icons/Project.icns" #Path to where Folder icons are stored | Creat%20Client-Project%20Folders.applescript |
on error number –128 | Script 15-5.applescript |
display dialog "You canceled the script. Bye!" | Script 15-5.applescript |
set the rootPwd to text returned of (display dialog "Input your Admin password:" default answer "" with hidden answer) | code.applescript |
display dialog "The operation has been successfully completed and your system should be able to recover the sound. | code.applescript |
If the problem persists, please reboot the system." buttons {"OK"} with icon 1 with title "Success!" | code.applescript |
display dialog "The operation can not be performed because you entered the wrong password. Please run this service again and re-enter the correct current admin password." buttons {"OK"} with icon caution with title "Error!" | code.applescript |
do action "Callout Text" from "Roben Kleene" | Callout Text.applescript |
set theString to "" & q | gistfile1-2 copy 7.applescript |
set theMessage to theString | gistfile1-2 copy 7.applescript |
set chatParts to (every text item in theString) as list | gistfile1-2 copy 7.applescript |
set theName to item 1 of chatParts | gistfile1-2 copy 7.applescript |
set x to the length of the (theName & ":") | gistfile1-2 copy 7.applescript |
repeat while theMessage begins with the (theName & ":") | gistfile1-2 copy 7.applescript |
set theMessage to characters (x + 1) thru -1 of theMessage as string | gistfile1-2 copy 7.applescript |
set theCount to count (every process whose name contains "Adium") | gistfile1-2 copy 7.applescript |
if theCount = 0 then | gistfile1-2 copy 7.applescript |
tell application "Adium" | gistfile1-2 copy 7.applescript |
set theContact to get name of first contact whose display name contains theName | gistfile1-2 copy 7.applescript |
if length of theContact > 0 then | gistfile1-2 copy 7.applescript |
tell application "Adium" to set theAccount to the account of the contact theContact | gistfile1-2 copy 7.applescript |
tell application "Adium" to set chatWindow to front chat window | gistfile1-2 copy 7.applescript |
tell theAccount to set newChat to make new chat with contacts {contact theContact} at after last chat of chatWindow | gistfile1-2 copy 7.applescript |
tell newChat to become active | gistfile1-2 copy 7.applescript |
tell theAccount to set newChat to make new chat with contacts {contact theContact} with new chat window | gistfile1-2 copy 7.applescript |
if length of theMessage is greater than 0 and theName is not equal to theMessage then | gistfile1-2 copy 7.applescript |
tell application "Adium" to send newChat message theMessage | gistfile1-2 copy 7.applescript |
display dialog "Sorry. I was unable to find the Adium contact with '" & theName & "' in it's display name and launch the chat." | gistfile1-2 copy 7.applescript |
set thisTrack to current track | Tweet.scpt |
set trackAlbum to the album of thisTrack | Tweet.scpt |
set trackYear to the year of thisTrack | Tweet.scpt |
set trackName to the name of thisTrack | Tweet.scpt |
set trackArtist to the artist of thisTrack | Tweet.scpt |
set tweet to "is listening to " & trackName & " by " & trackArtist & " (" & trackAlbum & ", " & trackYear & ")" | Tweet.scpt |
set textVar to "http://grooveshark.com/#!/search?q=" & trackName & " " & trackAlbum | Tweet.scpt |
set itemList to (text items of textVar) as list | Tweet.scpt |
set AppleScript's text item delimiters to {"+"} | Tweet.scpt |
set textVar to (itemList as text) | Tweet.scpt |
set tweet to tweet & " " & textVar | Tweet.scpt |
tell application "Twitter" | Tweet.scpt |
set the clipboard to tweet | Tweet.scpt |
set text item delimiters to "mississippi" | Script 7-8.applescript |
set the_secret_message to "memississippiet mississippime mississippiamississippit fimississippive" | Script 7-8.applescript |
set the_items to text items of the_secret_message | Script 7-8.applescript |
set the_message to the_items as string | Script 7-8.applescript |
systemNotification({msg:"some message", msgTitle:"Msg Title", msgSubtitle:"sub-title"}) | systemNotification.applescript |
on systemNotification(prefs) | systemNotification.applescript |
set defaultPrefs to {msg:"", msgTitle:"", msgSubtitle:"", msgSound:"default", noSound:null} | systemNotification.applescript |
if noSound of prefs is not null then | systemNotification.applescript |
display notification msg of prefs with title msgTitle of prefs subtitle msgSubtitle of prefs | systemNotification.applescript |
display notification msg of prefs with title msgTitle of prefs subtitle msgSubtitle of prefs sound name msgSound of prefs | systemNotification.applescript |
end systemNotification | systemNotification.applescript |
if application "Mail" is running then tell application "Mail" to quit | Start Streaming.applescript |
if application "Messages" is running then tell application "Messages" to quit | Start Streaming.applescript |
if application "Slack" is running then tell application "Slack" to quit | Start Streaming.applescript |
if application "Calendar" is running then tell application "Calendar" to quit | Start Streaming.applescript |
if application "OmniFocus" is running then tell application "OmniFocus" to quit | Start Streaming.applescript |
if application "Reminders" is running then tell application "Reminders" to quit | Start Streaming.applescript |
set theURL to "https://www.twitch.tv/popout/robenkleene/chat?popout=popout_chat" | Start Streaming.applescript |
tell application "OBS" to activate | Start Streaming.applescript |
play (every track whose genre is "Web") | Start Streaming.applescript |
scale this_file to size 1024 | _Scale to 1024 pixels.applescript |
copyDocumentNameToClipboard() | Copy Document Name.applescript |
on copyDocumentNameToClipboard() | Copy Document Name.applescript |
set theFileName to name of document 1 whose name ends with (word -1 of (get name of window 1)) | Copy Document Name.applescript |
set the clipboard to theFileName | Copy Document Name.applescript |
end copyDocumentNameToClipboard | Copy Document Name.applescript |
set fPath to (quoted form of finderPath()) | TermLaunch.scpt |
set itermPath to do shell script "mdfind 'kMDItemCFBundleIdentifier == com.googlecode.iterm*'" | TermLaunch.scpt |
if itermPath is not "" then | TermLaunch.scpt |
do shell script "open -a iTerm " & fPath | TermLaunch.scpt |
do shell script "open -a Terminal " & fPath | TermLaunch.scpt |
on finderPath() | TermLaunch.scpt |
set currentPath to the POSIX path of (target of window 1 as alias) | TermLaunch.scpt |
return currentPath | TermLaunch.scpt |
end finderPath | TermLaunch.scpt |
set marginLeft to display dialog "Choose the width of the margin on the left. (default: 25, minimum: 1)" default answer 25 with icon note buttons {"Cancel", "Continue"} default button "Continue" | Numbers to Pages (Spreadsheet to Document).applescript |
set marginTop to display dialog "Choose the width of the margin on the top. (default: 70,minimum: 1)" default answer 70 with icon note buttons {"Cancel", "Continue"} default button "Continue" | Numbers to Pages (Spreadsheet to Document).applescript |
set marginRight to display dialog "Choose the width of the margin on the right. (default: 25, minimum: 1)" default answer 25 with icon note buttons {"Cancel", "Continue"} default button "Continue" | Numbers to Pages (Spreadsheet to Document).applescript |
display dialog ("Select the Wintec logo to import") | Numbers to Pages (Spreadsheet to Document).applescript |
set logoWintec to (choose file with prompt "Select the Wintec Logo to import:") | Numbers to Pages (Spreadsheet to Document).applescript |
display dialog ("Select the Jinhua Polytechnic logo to import") | Numbers to Pages (Spreadsheet to Document).applescript |
set logoJinhua to (choose file with prompt "Select the Jinhua Logo to import:") | Numbers to Pages (Spreadsheet to Document).applescript |
set leftMargin to text returned of marginLeft | Numbers to Pages (Spreadsheet to Document).applescript |
set topMargin to text returned of marginTop | Numbers to Pages (Spreadsheet to Document).applescript |
set rightMargin to text returned of marginRight | Numbers to Pages (Spreadsheet to Document).applescript |
display dialog "Please choose the input file (Excel)" | Numbers to Pages (Spreadsheet to Document).applescript |
open (choose file with prompt "Please choose the input file:") | Numbers to Pages (Spreadsheet to Document).applescript |
set recordCount to (count of rows) - 2 | Numbers to Pages (Spreadsheet to Document).applescript |
set end of rowData to {value of cell 6, value of cell 7, value of cell 8, value of cell 9, value of cell 10, value of cell 11, value of cell 12, value of cell 13, value of cell 5, value of cell 4, value of cell 14} | Numbers to Pages (Spreadsheet to Document).applescript |
set maxPageWidth to 611 | Numbers to Pages (Spreadsheet to Document).applescript |
repeat with i from 1 to recordCount - 1 | Numbers to Pages (Spreadsheet to Document).applescript |
make new page | Numbers to Pages (Spreadsheet to Document).applescript |
make new image with properties {file:logoWintec, height:40, position:{leftMargin, topMargin - 50}} | Numbers to Pages (Spreadsheet to Document).applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.