text
stringlengths
0
15.7k
source
stringlengths
6
112
set field_name to do shell script "php -r \" echo ucwords(" & quoted form of field_name & ");\""
Import%201Password%20into%20iCloud%20Notes.applescript
return field_name
Import%201Password%20into%20iCloud%20Notes.applescript
end clean_field_name
Import%201Password%20into%20iCloud%20Notes.applescript
on clean_field_value(field_value_raw)
Import%201Password%20into%20iCloud%20Notes.applescript
set field_value to strip_quotes(field_value_raw)
Import%201Password%20into%20iCloud%20Notes.applescript
if (offset of "/" in field_value) is greater than 0 then
Import%201Password%20into%20iCloud%20Notes.applescript
set data_pieces to every text item of field_value
Import%201Password%20into%20iCloud%20Notes.applescript
if ((count data_pieces) = 3) and ((count field_value) ≥ 6) and ((count field_value) ≤ 10) then
Import%201Password%20into%20iCloud%20Notes.applescript
set field_value to "20" & item 3 of data_pieces & "-" & leading_zero(item 2 of data_pieces) & "-" & leading_zero(item 1 of data_pieces)
Import%201Password%20into%20iCloud%20Notes.applescript
return field_value
Import%201Password%20into%20iCloud%20Notes.applescript
end clean_field_value
Import%201Password%20into%20iCloud%20Notes.applescript
on leading_zero(the_number)
Import%201Password%20into%20iCloud%20Notes.applescript
if (the_number as number) < 10 then
Import%201Password%20into%20iCloud%20Notes.applescript
set the_number to "0" & (the_number as text)
Import%201Password%20into%20iCloud%20Notes.applescript
return the_number
Import%201Password%20into%20iCloud%20Notes.applescript
end leading_zero
Import%201Password%20into%20iCloud%20Notes.applescript
set query_text to "INSERT INTO contact_table (first_name, last_name) VALUES ('Dan', 'Smith')"
Script 25-13.applescript
set the_result to sql_query_insert(query_text)
Script 25-13.applescript
on sql_query_insert(query_text)
Script 25-13.applescript
tell application "MacSQL3"
Script 25-13.applescript
set rs to do query query_text results as none
Script 25-13.applescript
delete rs
Script 25-13.applescript
on error err_msg number err_num
Script 25-13.applescript
error err_msg number err_num
Script 25-13.applescript
end sql_query_insert
Script 25-13.applescript
fmGUI_ManageDb_Table_ListOfFieldNames("ZZ_GLOBALS")
fmGUI_ManageDb_Table_ListOfFieldNames.applescript
on fmGUI_ManageDb_Table_ListOfFieldNames(baseTableName)
fmGUI_ManageDb_Table_ListOfFieldNames.applescript
fmGUI_ManageDb_FieldsPickTable(baseTableName)
fmGUI_ManageDb_Table_ListOfFieldNames.applescript
value of static text 1 of every row of table 1 of scroll area 1 of tab group 1 of window 1
fmGUI_ManageDb_Table_ListOfFieldNames.applescript
error "Couldn't get list of field names for table '" & baseTableName & "' - " & errMsg number errNum
fmGUI_ManageDb_Table_ListOfFieldNames.applescript
end fmGUI_ManageDb_Table_ListOfFieldNames
fmGUI_ManageDb_Table_ListOfFieldNames.applescript
on fmGUI_ManageDb_FieldsPickTable(baseTableName)
fmGUI_ManageDb_Table_ListOfFieldNames.applescript
tell application "htcLib" to fmGUI_ManageDb_FieldsPickTable(baseTableName)
fmGUI_ManageDb_Table_ListOfFieldNames.applescript
end fmGUI_ManageDb_FieldsPickTable
fmGUI_ManageDb_Table_ListOfFieldNames.applescript
createDirectoryAtPath("~/Desktop/Test/A/B/C/")
createDirectoryAtPath.applescript
on createDirectoryAtPath(dirPath)
createDirectoryAtPath.applescript
if dirPath starts with "~" then
createDirectoryAtPath.applescript
if dirPath is "~" then
createDirectoryAtPath.applescript
set dirPath to userPath
createDirectoryAtPath.applescript
set dirPath to userPath & text 2 thru -1 of dirPath as text
createDirectoryAtPath.applescript
if dirPath does not contain ":" then set dirPath to (POSIX file dirPath) as text
createDirectoryAtPath.applescript
if dirPath does not end with ":" then set dirPath to dirPath & ":"
createDirectoryAtPath.applescript
tell application "System Events" to if (exists folder dirPath) then return true
createDirectoryAtPath.applescript
set pathComponents to text items of dirPath
createDirectoryAtPath.applescript
set parentDirectoryPath to (item 1 of pathComponents) & ":"
createDirectoryAtPath.applescript
repeat with i from 2 to ((count of pathComponents) - 1)
createDirectoryAtPath.applescript
set currentName to item i of pathComponents
createDirectoryAtPath.applescript
set currentPath to parentDirectoryPath & currentName & ":"
createDirectoryAtPath.applescript
if (exists folder currentPath) is false then
createDirectoryAtPath.applescript
make new folder at end of folders of folder parentDirectoryPath with properties {name:currentName}
createDirectoryAtPath.applescript
set parentDirectoryPath to currentPath
createDirectoryAtPath.applescript
end createDirectoryAtPath
createDirectoryAtPath.applescript
is_satimage_addition_installed()
Script 22-1.applescript
on is_satimage_addition_installed()
Script 22-1.applescript
change "a" in "abc" into "d" -- Send a Satimage-specific command
Script 22-1.applescript
on error number -1708 -- Command not found
Script 22-1.applescript
end is_satimage_addition_installed
Script 22-1.applescript
on find_position_in_list(the_list, the_value)
Script 18-4.applescript
repeat with i from 1 to count the_list
Script 18-4.applescript
if item i of the_list is the_value then return i
Script 18-4.applescript
error "Value not found."
Script 18-4.applescript
end find_position_in_list
Script 18-4.applescript
tell application "iTunes"
Script 5-4.applescript
play
Script 5-4.applescript
tell current track
Script 5-4.applescript
set the_track_name to name
Script 5-4.applescript
set the_album to album
Script 5-4.applescript
set the_artist to artist
Script 5-4.applescript
display dialog "Now listening to " & the_track_name & " of " & the_album & " by " & the_artist & "."
Script 5-4.applescript
set myNote to {}
copy evernote link.applescript
set noteLink to missing value
copy evernote link.applescript
set myNote to create note with text "HI!"
copy evernote link.applescript
repeat while noteLink is missing value
copy evernote link.applescript
set noteLink to (note link of myNote)
copy evernote link.applescript
 on add_to_log(the_message)
Script 17-9.applescript
set {YYYY, MM, DD} to {year, month, day} of (current date)
Script 17-9.applescript
set MM to MM as integer
Script 17-9.applescript
if MM < 10 then set MM to "0" & MM
Script 17-9.applescript
if DD < 10 then set DD to "0" & DD
Script 17-9.applescript
set log_file_name to (YYYY as text) & "_" & MM & "_" & DD & ".log"
Script 17-9.applescript
set log_file_path to (path to desktop as text) & log_file_name
Script 17-9.applescript
set full_message to return & (current date) & return & the_message
Script 17-9.applescript
set file_ID to open for access file log_file_path with write permission
Script 17-9.applescript
write full_message to file_ID starting at eof
Script 17-9.applescript
close access file_ID
Script 17-9.applescript
end add_to_log
Script 17-9.applescript
set the clipboard to time string of (current date)
Copy Current Time.applescript
property OpenCoreVersion : "Unknown"
AppDelegate.applescript
property BootPath : "Unknown"
AppDelegate.applescript
property OemProduct : "Unknown"
AppDelegate.applescript
property OemVendor : "Unknown"
AppDelegate.applescript
property OemBoard : "Unknown"
AppDelegate.applescript
property Config : "Unknown"
AppDelegate.applescript
property SystemProductName : missing value
AppDelegate.applescript
property SystemProductNameItems : {"iMac13,2", "MacMini6,2"}
AppDelegate.applescript
property SystemProductNameEnabled : false
AppDelegate.applescript
property PickerMode : missing value
AppDelegate.applescript
property ShowPicker : false
AppDelegate.applescript
property PickerModeItems : {"Builtin", "External"}
AppDelegate.applescript
property PickerTimeout : missing value
AppDelegate.applescript