text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
display dialog "Thank you for using my " & myName & " script for so long: " & runCount & " times." & return & return & "How about giving me a little hand to improve this script?" & return & return & "Donate 3 or 5 dollars to make an independent programmer very happy today!" buttons {"Later", "OK"} default button 2 with... | iTunes SED.applescript |
if button returned of result as text is "OK" then open location donateUrl | iTunes SED.applescript |
set {the_path, file_name} to parse_path(first item of q) | alfred-vim.applescript |
set _terminal to make new terminal | alfred-vim.applescript |
launch session "Vim" | alfred-vim.applescript |
write text "cd \"" & the_path & "\"" | alfred-vim.applescript |
if (file_name is "") then | alfred-vim.applescript |
write text "e" | alfred-vim.applescript |
write text "e " & file_name | alfred-vim.applescript |
on parse_path(input_path) | alfred-vim.applescript |
set posix_path to POSIX file input_path | alfred-vim.applescript |
set the_file to alias posix_path | alfred-vim.applescript |
if (the_file as string) ends with ":" then | alfred-vim.applescript |
return {input_path, ""} | alfred-vim.applescript |
set path_list to text items 1 through -2 of input_path | alfred-vim.applescript |
set file_name to text item -1 of input_path as string | alfred-vim.applescript |
set return_path to path_list as string | alfred-vim.applescript |
return {return_path, file_name} | alfred-vim.applescript |
end parse_path | alfred-vim.applescript |
set dir to (the target of window 1) as alias | duplicate-at-front.applescript |
duplicate theItem to dir | duplicate-at-front.applescript |
set thisWeek to (current date) + (7 * days) | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set the Calender_Lists to {"Personal", "Work", "Business", "Google"} | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set theButton to button returned of (display dialog "Do you want to create an event for a ToDo due this week or all Open" with title "Select ToDo" buttons {"Due This Week", "All Open"} default button 1) | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
if theButton is "Due This Week" then | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set inboxToDos to every to do whose status is open and due date is less than thisWeek | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set inboxToDos to every to do whose status is open | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set scheduleToDo to {} | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
repeat with r from 1 to length of inboxToDos | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set this_todo to item r of inboxToDos | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
copy (todoName) to end of scheduleToDo | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
if scheduleToDo is not {} then | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set todoList to choose from list scheduleToDo with prompt "Select the To Do to Schedule" | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
display dialog "There are no To Dos to Schedule" buttons {"OK"} | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
if todoList is false then return | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set todoSelect to every to do whose name is equal to todoList | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
repeat with r from 1 to length of todoSelect | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set this_todo to item r of todoSelect | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set eventName to (get name of this_todo) as text | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set eventTags to (get tag names of this_todo) as text | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set eventURL to (get id of this_todo) as text | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set eventDue to (get due date of this_todo) as text | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set eventNotes to (get notes of this_todo) as text | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
(choose from list {"2 Hours", "Tonight", "Tomorrow", "2 Days", "3 Days", "4 Days", "Saturday", "Sunday", "Next Monday", "1 Week"} default items defaultReminder OK button name "Select" with prompt "Set Event time" with title "Create Reminder from E-Mail") | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set theStartDate to my chooseRemindMeDate(reminderDate) | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set defaultReminderTime to 0 | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
defaultReminderTime | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set defaultReminderTime to text returned of (display dialog "what time do you want to start? (answer in decimal ie 2:30pm is 14.5)" default answer "9") | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set theStartDate to (current date) + 2 * hours | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set time of theStartDate to 60 * 60 * 17 | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set time of theStartDate to 60 * 60 * defaultReminderTime | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set theEndDate to theStartDate | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
(choose from list Calender_Lists OK button name "Select" with prompt "Pick Calendar" with title "Create Calendar Event") | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set Cal to result as text | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
tell calendar Cal | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
make new event with properties {summary:"Things3 - " & eventTags & " - " & eventName, start date:theStartDate, end date:theEndDate, description:"Due Date -" & eventDue & return & eventNotes, url:"things:///show?id=%22" & eventURL & "%22", allday event:allDay} | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
else if selectedDate = "Saturday" then | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set remindMeDate to (current date) + 8 * days | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
else if selectedDate = "Sunday" then | Things3%20To%20Do%20to%20Calendar%20Event.applescript |
set kitchenTunes to application "iTunes" of machine "eppc://patty:tango@192.168.0.12" | remote-itunes-test-works.applescript |
tell kitchenTunes | remote-itunes-test-works.applescript |
on command1:sender | AppDelegate copy 14.applescript |
on command2:sender | AppDelegate copy 14.applescript |
logMAIN("SomeMessage") | logMain.applescript |
on logMAIN(someMsg) | logMain.applescript |
logLEVEL(0, someMsg) -- log at highest importance | logMain.applescript |
end logMAIN | logMain.applescript |
on logLEVEL(level, someMsg) | logMain.applescript |
tell application "htcLib" to logLEVEL(level, someMsg) | logMain.applescript |
end logLEVEL | logMain.applescript |
my createFadeOut(originalCue) | Create fade out.applescript |
my createFadeOut(originalCueTarget) | Create fade out.applescript |
my createGroup(originalCue) | Create fade out.applescript |
on createFadeOut(theCue) | Create fade out.applescript |
newCue setLevel row 0 column 0 db -120 | Create fade out.applescript |
if (q type of theCue) is not "Video" then | Create fade out.applescript |
set stop target when done of newCue to true | Create fade out.applescript |
set q name of newCue to "Fade out: " & q display name of theCue | Create fade out.applescript |
end createFadeOut | Create fade out.applescript |
on createGroup(theCue) | Create fade out.applescript |
set q name of fadeGroup to "Fade out: " & theCueName | Create fade out.applescript |
my createFadeOut(eachCue) | Create fade out.applescript |
my createFadeOut(eachCueTarget) | Create fade out.applescript |
on func() | tell.applescript |
end func | tell.applescript |
tell application "/Applications/Sublime Text 2.app" | tell.applescript |
my func() | tell.applescript |
if isAppRunning("iTerm") then | new-iterm.applescript |
on isAppRunning(appName) | new-iterm.applescript |
end isAppRunning | new-iterm.applescript |
set tabsToClose to {} | close%20zoom%20tabs.applescript |
repeat with _window in windows | close%20zoom%20tabs.applescript |
repeat with _tab in tabs of _window | close%20zoom%20tabs.applescript |
if URL of _tab contains "zoom.us" then | close%20zoom%20tabs.applescript |
set beginning of tabsToClose to _tab | close%20zoom%20tabs.applescript |
repeat with _tab in tabsToClose | close%20zoom%20tabs.applescript |
set numDialogs to 100 | close-all-permission-dialogs.applescript |
repeat numDialogs times | close-all-permission-dialogs.applescript |
delay 0.07 | close-all-permission-dialogs.applescript |
tell application id "com.apple.accessibility.universalAccessAuthWarn" | close-all-permission-dialogs.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.