text
stringlengths
0
15.7k
source
stringlengths
6
112
set projectName to (name of (every flattened project whose status is active or status is on hold ¬
Interactive Inbox.applescript
and name of its folder is not ¬
Interactive Inbox.applescript
"Navigation" and name of its folder is not ¬
Interactive Inbox.applescript
"Templates" and hidden of its folder is not true))
Interactive Inbox.applescript
set _project to O's findProject(choose from list projectName with title "Interactive Inbox" with prompt "Assign " & name of _task & " to:" without empty selection allowed)
Interactive Inbox.applescript
set assigned container of _task to _project
Interactive Inbox.applescript
display notification "No project selected for " & name of _task & "."
Interactive Inbox.applescript
compact
Interactive Inbox.applescript
if (count of inbox tasks) > 1 then
Interactive Inbox.applescript
display notification (((count of inbox tasks) as text) & " tasks remain in the inbox.")
Interactive Inbox.applescript
else if (count of inbox tasks) > 0 then
Interactive Inbox.applescript
display notification (((count of inbox tasks) as text) & " task remains in the inbox.")
Interactive Inbox.applescript
set _username to system attribute "USER"
getUsername.applescript
if _username is "" then
getUsername.applescript
set _username to do shell script "whoami"
getUsername.applescript
if _username is "root" then
getUsername.applescript
set _username to do shell script "who | grep console | awk '{print $1}'"
getUsername.applescript
tell application "Plexamp"
Screensaver copy.applescript
delete i
replace-ppt-with-pdf.applescript
return front window
front.applescript
on make_with(x_file)
InfoPlistArranger.applescript
set a_dict to NSMutableDictionary's dictionaryWithContentsOfFile_(¬
InfoPlistArranger.applescript
x_file's child("Contents/Info.plist")'s posix_path())
InfoPlistArranger.applescript
set book_folder_name to a_dict's objectForKey_("CFBundleHelpBookFolder")
InfoPlistArranger.applescript
if book_folder_name is not missing value then
InfoPlistArranger.applescript
set book_folder_name to book_folder_name as text
InfoPlistArranger.applescript
script InfoPlistArrangerInstance
InfoPlistArranger.applescript
property _target_xfile : x_file
InfoPlistArranger.applescript
property _info_dict : a_dict
InfoPlistArranger.applescript
property _book_folder_name : book_folder_name
InfoPlistArranger.applescript
property _book_folder : missing value
InfoPlistArranger.applescript
property _need_setup : false
InfoPlistArranger.applescript
property _bundle_id_is_checked : false
InfoPlistArranger.applescript
tell InfoPlistArrangerInstance
InfoPlistArranger.applescript
if its _book_folder_name is missing value then
InfoPlistArranger.applescript
set its _need_setup to true
InfoPlistArranger.applescript
set resource_folder to x_file's bundle_resources_folder()
InfoPlistArranger.applescript
set its _book_folder to resource_folder's make_folder(its _book_folder_name)
InfoPlistArranger.applescript
return InfoPlistArrangerInstance
InfoPlistArranger.applescript
end make_with
InfoPlistArranger.applescript
on value_for(a_key)
InfoPlistArranger.applescript
return my _info_dict's objectForKey_(a_key)
InfoPlistArranger.applescript
end value_for
InfoPlistArranger.applescript
on product_name()
InfoPlistArranger.applescript
set a_result to missing value
InfoPlistArranger.applescript
set a_result to my _info_dict's objectForKey_("CFBundleName")
InfoPlistArranger.applescript
if a_result is not missing value then
InfoPlistArranger.applescript
return a_result as text
InfoPlistArranger.applescript
return my _target_xfile's basename()
InfoPlistArranger.applescript
end product_name
InfoPlistArranger.applescript
on set_bookname(book_name)
InfoPlistArranger.applescript
my _info_dict's setObject_forKey_(book_name, "CFBundleHelpBookName")
InfoPlistArranger.applescript
set my _need_setup to true
InfoPlistArranger.applescript
return my _info_dict's objectForKey_("CFBundleHelpBookName")
InfoPlistArranger.applescript
on setup_book_folder()
InfoPlistArranger.applescript
if my _book_folder_name is missing value then
InfoPlistArranger.applescript
set my _book_folder_name to (my _target_xfile's basename()) & "Help"
InfoPlistArranger.applescript
my _info_dict's setObject_forKey_(my _book_folder_name, "CFBundleHelpBookFolder")
InfoPlistArranger.applescript
set resource_folder to my _target_xfile's bundle_resources_folder()
InfoPlistArranger.applescript
set my _book_folder to resource_folder's make_folder(my _book_folder_name)
InfoPlistArranger.applescript
end setup_book_folder
InfoPlistArranger.applescript
on get_book_folder()
InfoPlistArranger.applescript
if my _book_folder is missing value then
InfoPlistArranger.applescript
setup_book_folder()
InfoPlistArranger.applescript
return my _book_folder
InfoPlistArranger.applescript
end get_book_folder
InfoPlistArranger.applescript
on bundle_identifier()
InfoPlistArranger.applescript
set bundle_id to my _info_dict's objectForKey_("CFBundleIdentifier")
InfoPlistArranger.applescript
if bundle_id is missing value then
InfoPlistArranger.applescript
set bundle_id to (system attribute "USER") & "." & (my _target_xfile's basename())
InfoPlistArranger.applescript
my _info_dict's setObject_forKey_(bundle_id, "CFBundleIdentifier")
InfoPlistArranger.applescript
set bundle_id to bundle_id as text
InfoPlistArranger.applescript
set my _bundle_id_is_checked to true
InfoPlistArranger.applescript
return bundle_id
InfoPlistArranger.applescript
end bundle_identifier
InfoPlistArranger.applescript
on setup_info_plist()
InfoPlistArranger.applescript
if not my _bundle_id_is_checked then
InfoPlistArranger.applescript
bundle_identifier()
InfoPlistArranger.applescript
if not my _need_setup then return
InfoPlistArranger.applescript
set target_infoPlist to my _target_xfile's child("Contents/Info.plist")
InfoPlistArranger.applescript
my _info_dict's writeToFile_atomically_(target_infoPlist's posix_path(), 1)
InfoPlistArranger.applescript
set recover_plist to my _target_xfile's bundle_resources_folder()'s child("recover-Info.plist")
InfoPlistArranger.applescript
if recover_plist's item_exists() then
InfoPlistArranger.applescript
target_infoPlist's copy_with_replacing(recover_plist)
InfoPlistArranger.applescript
set my _need_setup to false
InfoPlistArranger.applescript
end setup_info_plist
InfoPlistArranger.applescript
keystroke "https://www.crunchyroll.com/one-piece"
onePiece.applescript
set myMailAccount to "moz"
DatedSpaceMail.scpt
set messageDate to eachMessage's date sent
DatedSpaceMail.scpt
set y to year of messageDate
DatedSpaceMail.scpt
set y to y as string
DatedSpaceMail.scpt
set m to month of messageDate as integer
DatedSpaceMail.scpt
set m to m as string
DatedSpaceMail.scpt
if the length of m is 1 then
DatedSpaceMail.scpt
set m to "0" & m
DatedSpaceMail.scpt
tell account myMailAccount
DatedSpaceMail.scpt
set datedMailbox to y & "/" & m
DatedSpaceMail.scpt
if not (exists mailbox datedMailbox) then
DatedSpaceMail.scpt
my logit("MAILDATEFILTER: creating mailbox" & datedMailbox, "applescript")
DatedSpaceMail.scpt
set mbox to make new mailbox with properties {name:y & "/" & m}
DatedSpaceMail.scpt