text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
do shell script "open " & target
|
Open and Complete.applescript
|
else if _paragraph starts with "Notify:" then
|
Open and Complete.applescript
|
set target to (get text 8 through -1 of _paragraph)
|
Open and Complete.applescript
|
display notification target
|
Open and Complete.applescript
|
else if _paragraph starts with "Alert:" then
|
Open and Complete.applescript
|
set target to (get text 7 through -1 of _paragraph)
|
Open and Complete.applescript
|
display alert target
|
Open and Complete.applescript
|
else if length of (get file name of first file attachment of file attachments of note of first item of _sel) is not 0 then
|
Open and Complete.applescript
|
repeat with _attachment in file attachments of note of _sel
|
Open and Complete.applescript
|
set target to POSIX path of (get file name of _attachment)
|
Open and Complete.applescript
|
do shell script "open " & quoted form of target
|
Open and Complete.applescript
|
else if value of attribute named "link" of style of paragraph paragraphCount of note of _sel is not "" then
|
Open and Complete.applescript
|
set target to value of attribute named "link" of style of paragraph paragraphCount of note of _sel
|
Open and Complete.applescript
|
else if _paragraph starts with "iOS:" then
|
Open and Complete.applescript
|
tell O to setComplete(sel, true)
|
Open and Complete.applescript
|
if item 1 of argv = "Desktop" then
|
Monthly-Cleanups.applescript
|
set rootFolder to (path to desktop folder)
|
Monthly-Cleanups.applescript
|
else if item 1 of argv = "Downloads" then
|
Monthly-Cleanups.applescript
|
set rootFolder to (path to downloads folder)
|
Monthly-Cleanups.applescript
|
set t to POSIX path of rootFolder
|
Monthly-Cleanups.applescript
|
set oldFiles to {}
|
Monthly-Cleanups.applescript
|
set mydate to current date
|
Monthly-Cleanups.applescript
|
set twoweeksago to mydate - (14 * days)
|
Monthly-Cleanups.applescript
|
set thisMonth to (month of mydate) as integer
|
Monthly-Cleanups.applescript
|
if thisMonth < 10 then set thisMonth to "0" & thisMonth
|
Monthly-Cleanups.applescript
|
set thisYear to characters 3 thru -1 of ((year of mydate) as string) as string
|
Monthly-Cleanups.applescript
|
set shortdate to thisMonth & "." & thisYear as text
|
Monthly-Cleanups.applescript
|
set MonthlyCleanupFolder to POSIX path of rootFolder & "Cleanups/" & year of mydate & "/" & (shortdate & " - Monthly Cleanup")
|
Monthly-Cleanups.applescript
|
do shell script "mkdir -p " & quoted form of MonthlyCleanupFolder
|
Monthly-Cleanups.applescript
|
if item 1 of argv = "Downloads" then
|
Monthly-Cleanups.applescript
|
set oldFiles to every item of rootFolder whose (name does not contain "Cleanup") and creation date < twoweeksago
|
Monthly-Cleanups.applescript
|
else if item 1 of argv = "Desktop" then
|
Monthly-Cleanups.applescript
|
set oldFiles to every item of rootFolder whose (name does not contain "Cleanup" and name does not contain "Screen") and creation date < twoweeksago
|
Monthly-Cleanups.applescript
|
if (count of oldFiles) > 0 then
|
Monthly-Cleanups.applescript
|
move oldFiles to POSIX file MonthlyCleanupFolder as alias
|
Monthly-Cleanups.applescript
|
display notification ((count of oldFiles) & " files archived to clean up folder") as text with title "Archive Old " & item 1 of argv & " Files" subtitle "Success" sound name "Blow"
|
Monthly-Cleanups.applescript
|
display notification "No files cleaned up" with title "Archive Old " & item 1 of argv sound name "Frog"
|
Monthly-Cleanups.applescript
|
on error errMsg number errorNumber
|
Monthly-Cleanups.applescript
|
display notification errMsg with title "Monthly Cleanup" subtitle "Error number: " & errorNumber sound name "Basso"
|
Monthly-Cleanups.applescript
|
set theRating to 0 -- 0 stars
|
0-star.scpt
|
set theOldRating to rating of current track
|
0-star.scpt
|
set rating of current track to theRating
|
0-star.scpt
|
display notification "Rating set to " & (theRating div 20) & " stars from " & (theOldRating div 20) & "." with title "Rating changed"
|
0-star.scpt
|
property name : "Alfred Library"
|
Alfred Library.applescript
|
property id : "com.kfunderburg.library.alfredLibrary"
|
Alfred Library.applescript
|
property ICON_PATH_BASE : "/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/"
|
Alfred Library.applescript
|
property ICON_ERROR : {theType:"filepath", thePath:ICON_PATH_BASE & "AlertStopIcon.icns"}
|
Alfred Library.applescript
|
property ICON_INFO : {theType:"filepath", thePath:ICON_PATH_BASE & "ToolbarInfo.icns"}
|
Alfred Library.applescript
|
on newWorkflow()
|
Alfred Library.applescript
|
return my newWorkFlowWithBundle(missing value)
|
Alfred Library.applescript
|
end newWorkflow
|
Alfred Library.applescript
|
on newWorkFlowWithBundle(bundleid)
|
Alfred Library.applescript
|
script Workflow
|
Alfred Library.applescript
|
property class : "workflow"
|
Alfred Library.applescript
|
property _bundle : missing value
|
Alfred Library.applescript
|
property _cache : missing value
|
Alfred Library.applescript
|
property _data : missing value
|
Alfred Library.applescript
|
property _home : missing value
|
Alfred Library.applescript
|
property _localHash : missing value
|
Alfred Library.applescript
|
property _name : missing value
|
Alfred Library.applescript
|
property _path : missing value
|
Alfred Library.applescript
|
property _preferences : missing value
|
Alfred Library.applescript
|
property _results : missing value
|
Alfred Library.applescript
|
property _uuid : missing value
|
Alfred Library.applescript
|
set _bundle to (system attribute "alfred_workflow_bundleid")
|
Alfred Library.applescript
|
set _cache to (system attribute "alfred_workflow_cache")
|
Alfred Library.applescript
|
set _data to (system attribute "alfred_workflow_data")
|
Alfred Library.applescript
|
set _localHash to (system attribute "alfred_preferences_localhash")
|
Alfred Library.applescript
|
set _preferences to (system attribute "alfred_preferences")
|
Alfred Library.applescript
|
set _name to (system attribute "alfred_workflow_name")
|
Alfred Library.applescript
|
set _uuid to (system attribute "alfred_workflow_uid")
|
Alfred Library.applescript
|
set _version to (system attribute "alfred_version")
|
Alfred Library.applescript
|
set _versionBuild to (system attribute "alfred_version_build")
|
Alfred Library.applescript
|
set my _path to do shell script "pwd"
|
Alfred Library.applescript
|
if my _path does not end with "/" then set my _path to my _path & "/"
|
Alfred Library.applescript
|
set my _home to POSIX path of ((path to home folder) as alias)
|
Alfred Library.applescript
|
set _infoPlist to _path & "info.plist"
|
Alfred Library.applescript
|
set my _results to {}
|
Alfred Library.applescript
|
on getPath()
|
Alfred Library.applescript
|
if my isEmpty(my _path) then return missing value
|
Alfred Library.applescript
|
return my _path
|
Alfred Library.applescript
|
end getPath
|
Alfred Library.applescript
|
on getHome()
|
Alfred Library.applescript
|
if my isEmpty(my _home) then return missing value
|
Alfred Library.applescript
|
return my _home
|
Alfred Library.applescript
|
end getHome
|
Alfred Library.applescript
|
on getResults()
|
Alfred Library.applescript
|
if my isEmpty(my _results) then return missing value
|
Alfred Library.applescript
|
return my _results
|
Alfred Library.applescript
|
end getResults
|
Alfred Library.applescript
|
on getUID()
|
Alfred Library.applescript
|
if my isEmpty(my _uuid) then return missing value
|
Alfred Library.applescript
|
return my _uuid
|
Alfred Library.applescript
|
end getUID
|
Alfred Library.applescript
|
on getName()
|
Alfred Library.applescript
|
if my isEmpty(my _name) then return missing value
|
Alfred Library.applescript
|
return my _name
|
Alfred Library.applescript
|
on getPreferences()
|
Alfred Library.applescript
|
if my isEmpty(my _preferences) then return missing value
|
Alfred Library.applescript
|
return my _preferences
|
Alfred Library.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.