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
<key>CFBundleDocumentTypes</key> | |
<array> | |
<dict> | |
<key>CFBundleTypeExtensions</key> | |
<array> | |
<string>jpg</string> | |
<string>jpeg</string> | |
<string>png</string> | |
<string>tif</string> | |
<string>tiff</string> |
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
do shell script "defaults -currentHost write ~/Library/Preferences/ByHost/com.apple.notificationcenterui doNotDisturb -boolean true" | |
set theDate to quoted form of (do shell script "date -u +\"%Y-%m-%d %H:%M:%S +0000\"") | |
do shell script "defaults -currentHost write ~/Library/Preferences/ByHost/com.apple.notificationcenterui doNotDisturbDate -date " & theDate | |
do shell script "killall NotificationCenter" |
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
do shell script "defaults -currentHost write ~/Library/Preferences/ByHost/com.apple.notificationcenterui doNotDisturb -boolean false" | |
try | |
do shell script "defaults -currentHost delete ~/Library/Preferences/ByHost/com.apple.notificationcenterui doNotDisturbDate" | |
end try | |
do shell script "killall NotificationCenter" |
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
-- Ask the user to enter a date. Note, if no time is specified, then the date will default to 12:00 AM. | |
set theDate to text returned of (display dialog "Please enter a starting date:" default answer "8/9/1997 12:00PM" with icon note with title "Elapsed Time Calculator") | |
-- Coerce the entered date to an AppleScript date | |
set theDate to date theDate | |
-- Get the current date | |
set theCurrentDate to current date | |
-- Determine the number of months, years, seconds, minutes, hours, days, and weeks |
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
-- Prepare a name for the new note | |
set theNoteName to "OmniFocus Completed Task Report" | |
-- Prompt the user to choose a scope for the report | |
activate | |
set theReportScope to choose from list {"Today", "Yesterday", "This Week", "Last Week", "This Month"} default items {"Yesterday"} with prompt "Generate a report for:" with title "OmniFocus Completed Task Report" | |
if theReportScope = false then return | |
set theReportScope to item 1 of theReportScope | |
-- Calculate the task start and end dates, based on the specified scope |
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
-- "using terms from" is necessary to let AppleScript know that these event handlers are terminology that belongs to the Contacts app. | |
using terms from application "Contacts" | |
-- This handler returns the Contacts property for which the plug-in should function. | |
on action property | |
return "email" | |
end action property | |
-- This handler returns the name of the plug-in to be displayed in the Contacts property popup menu. | |
on action title |
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
-- "using terms from" is necessary to let AppleScript know that these event handlers are terminology that belongs to the Contacts app. | |
using terms from application "Contacts" | |
-- This handler returns the Contacts property for which the plug-in should function. | |
on action property | |
return "phone" | |
end action property | |
-- This handler returns the name of the plug-in to be displayed in the Contacts property popup menu. | |
on action title |
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
-- This property controls the calendar on which the event is added | |
set theCalendarName to "AppleScripts" | |
-- Prompt the user to select a script to attach to an event. This should be an application. | |
set theScriptToTrigger to choose file with prompt "Please select a saved AppleScript application to attach to an event:" of type "app" | |
-- Get the script's name | |
set theScriptToTriggerName to displayed name of (info for theScriptToTrigger) | |
-- Check for the existence of the target calendar, creating it if it doesn't already exist |
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
-- Options to process a maximum number of messages | |
property limitMessageProcessing : true | |
property theMaxMessagesToProcess : 5 | |
-- The voice to use when speaking. This should be one of the voices in System Preferences > Dictation & Speech > Text to Speech | |
property theVoice : "Alex" | |
-- Tihs setting controls whether the script raises the volume to speak, if needed. | |
property raiseVolumeIfNeeded : true |
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
-- Options to process a maximum number of messages | |
property limitMessageProcessing : true | |
property theMaxMessagesToProcess : 5 | |
-- The voice to use when speaking. This should be one of the voices in System Preferences > Dictation & Speech > Text to Speech | |
property theVoice : "Alex" | |
-- Tihs setting controls whether the script raises the volume to speak, if needed. | |
property raiseVolumeIfNeeded : true |