text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
my new_tab(URLtoOpen)
|
Open JIRA copy 4.applescript
|
set todayDate to current date
|
OmniFocusDailyMaintenance.scpt
|
set todayDate's hours to 0
|
OmniFocusDailyMaintenance.scpt
|
set todayDate's minutes to 0
|
OmniFocusDailyMaintenance.scpt
|
set todayDate's seconds to 0
|
OmniFocusDailyMaintenance.scpt
|
set tomorrowDate to todayDate + 1 * days
|
OmniFocusDailyMaintenance.scpt
|
set todayTasks to (flattened tasks where (defer date ≥ todayDate and defer date < tomorrowDate))
|
OmniFocusDailyMaintenance.scpt
|
repeat with t in todayTasks
|
OmniFocusDailyMaintenance.scpt
|
set t's flagged to true
|
OmniFocusDailyMaintenance.scpt
|
to check for yourNumber from bottom thru top
|
AdvancedLabeledParameterHandler_V1.applescript
|
if bottom ≤ yourNumber and yourNumber ≤ top then
|
AdvancedLabeledParameterHandler_V1.applescript
|
display dialog "Congratulations! You scored."
|
AdvancedLabeledParameterHandler_V1.applescript
|
end check
|
AdvancedLabeledParameterHandler_V1.applescript
|
check for 8 from 7 thru 10
|
AdvancedLabeledParameterHandler_V1.applescript
|
to find_highest out of the_list
|
Script 18-11.applescript
|
set highest_for_now to item 1 of the_list as number
|
Script 18-11.applescript
|
repeat with the_item_ref in rest of the_list
|
Script 18-11.applescript
|
if the_item_ref as number > highest_for_now then
|
Script 18-11.applescript
|
set highest_for_now to the_item_ref as number
|
Script 18-11.applescript
|
return highest_for_now
|
Script 18-11.applescript
|
end find_highest
|
Script 18-11.applescript
|
set this_folder to (the target of the front window) as alias
|
newtextfile.scpt
|
set this_folder to startup disk
|
newtextfile.scpt
|
set the_path to POSIX path of this_folder
|
newtextfile.scpt
|
set the_file to text returned of (display dialog "Enter name of file to create. If file already exists, the modification time will be set to now." default answer "untitled.txt")
|
newtextfile.scpt
|
do shell script "/usr/bin/touch " & quoted form of the_path & the_file
|
newtextfile.scpt
|
set theWindow to front document window of front document
|
oneOffRoutineTask.applescript
|
set theTasks to selected trees of content of theWindow
|
oneOffRoutineTask.applescript
|
set theValues to {}
|
oneOffRoutineTask.applescript
|
repeat with n in theTasks
|
oneOffRoutineTask.applescript
|
set end of theValues to value of n
|
oneOffRoutineTask.applescript
|
repeat with theTask in theValues
|
oneOffRoutineTask.applescript
|
set theDupe to duplicate theTask to after theTask
|
oneOffRoutineTask.applescript
|
set repetition rule of theDupe to missing value
|
oneOffRoutineTask.applescript
|
set now to current date
|
oneOffRoutineTask.applescript
|
set hours of now to 17
|
oneOffRoutineTask.applescript
|
set minutes of now to 0
|
oneOffRoutineTask.applescript
|
set seconds of now to 0
|
oneOffRoutineTask.applescript
|
set the defer date of theDupe to now
|
oneOffRoutineTask.applescript
|
set completed of theTask to true
|
oneOffRoutineTask.applescript
|
set x to 5
|
XRepeat.applescript
|
repeat while x > 0
|
XRepeat.applescript
|
set x to x - 1
|
XRepeat.applescript
|
repeat until x ≤ 0
|
XRepeat.applescript
|
property excluded_fields : {"Created Date", "Modified Date", "base station name(name)"} --, "full name(name)", "Password"
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
property original_text_item_delimiters : AppleScript's text item delimiters
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
property delimiter : tab
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set chosen_file to (choose file)
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set imported_file to read chosen_file
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set rows to every text item of imported_file
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set AppleScript's text item delimiters to original_text_item_delimiters
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set field_names_text to item 1 of rows
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set field_names to every text item of field_names_text
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
repeat with row_number from 2 to count rows
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set current_row to item row_number of rows
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
if current_row is not "" then
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set current_record_title to null
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set current_record_type to null
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set current_record_data to {}
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set current_record_notes to null
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set fields to every text item of current_row
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
repeat with field_number from 1 to count fields
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set field to item field_number of fields
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
if field is not "" and field is not "\"\"" then
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set field_name to strip_quotes(item field_number of field_names)
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
if field_name = "Title" then
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set current_record_title to clean_field_value(field)
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
else if field_name = "Type" then
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set current_record_type to clean_field_value(field) & "s"
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
else if field_name = "Notes" then
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set current_record_notes to clean_field_value(field)
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
else if excluded_fields does not contain field_name then
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set current_record_data to current_record_data & (clean_field_name(field_name) & ": " & clean_field_value(field))
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set current_record to {title:current_record_title, type:current_record_type, data:current_record_data, notes:current_record_notes}
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set AppleScript's text item delimiters to "</div><div>"
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set current_record_body to "<div>" & (current_record_data as text) & "</div>"
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
if current_record_notes is not null then
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set current_record_body to current_record_body & "<div><br /></div><div>Notes:</div><div>" & current_record_notes & "</div>"
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
if not (exists folder current_record_type of account "iCloud") then
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
make new folder at account "iCloud" with properties {name:current_record_type}
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
if not (exists note current_record_title in folder current_record_type of account "iCloud") then
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
log "Creating Note"
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
make new note at folder current_record_type of account "iCloud" with properties {name:current_record_title, body:current_record_body}
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
else if current_record_type = "Software Licences" then
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
log "Note exists of type Software Licence: " & (get body of note current_record_title in folder current_record_type of account "iCloud")
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set current_record_body to body of note current_record_title in folder current_record_type of account "iCloud" & "<div><br></div>" & current_record_body
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set body of note current_record_title in folder current_record_type of account "iCloud" to current_record_body
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
log "Note exists"
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
log (get body of note current_record_title in folder current_record_type of account "iCloud")
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
on strip_quotes(value)
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
if character 1 of value = "\"" then
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set value to (characters 2 through (count characters in value) of value) as text
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
if character (count characters of value) of value = "\"" then
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set value to (characters 1 through ((count characters in value) - 1) of value) as text
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
return value
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
end strip_quotes
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
on clean_field_name(field_name)
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set parenthesis_offset to offset of "(" in field_name
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
if (parenthesis_offset is greater than 0) and (character (count characters of field_name) of field_name) = ")" then
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
set field_name to (characters 1 through (parenthesis_offset - 1) of field_name) as text
|
Import%201Password%20into%20iCloud%20Notes.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.