text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
if (file_ext ≠ "") then set lsNoteTitle to text 1 thru -((count file_ext) + 2) of file_name | Evernote%20Mac%20File%20Import.AppleScript |
set strImportDate to text 1 thru 10 of ((current date) as «class isot» as string) | Evernote%20Mac%20File%20Import.AppleScript |
set strCreateDate to text 1 thru 10 of ((creationDate) as «class isot» as string) | Evernote%20Mac%20File%20Import.AppleScript |
set theBody to "<div><B>File: " & file_name & "</B></div> | Evernote%20Mac%20File%20Import.AppleScript |
<div>Source Date: " & strCreateDate & " Imported: " & strImportDate & "</div><div><hr></div><div><br></div>" | Evernote%20Mac%20File%20Import.AppleScript |
if ((ptyEN_NB_Name is "") and (ptyEN_TagList is {})) then -- NO NB or Tags | Evernote%20Mac%20File%20Import.AppleScript |
create note title lsNoteTitle with html theBody created creationDate attachments posixFile | Evernote%20Mac%20File%20Import.AppleScript |
else if ((ptyEN_NB_Name is "") and (ptyEN_TagList is not {})) then -- Tags only | Evernote%20Mac%20File%20Import.AppleScript |
create note title lsNoteTitle with html theBody tags ptyEN_TagList created creationDate attachments posixFile | Evernote%20Mac%20File%20Import.AppleScript |
else if ((ptyEN_NB_Name is not "") and (ptyEN_TagList is {})) then -- NB only | Evernote%20Mac%20File%20Import.AppleScript |
create note title lsNoteTitle with html theBody notebook ptyEN_NB_Name created creationDate attachments posixFile | Evernote%20Mac%20File%20Import.AppleScript |
else if ((ptyEN_NB_Name is not "") and (ptyEN_TagList is not {})) then -- NB & Tags | Evernote%20Mac%20File%20Import.AppleScript |
create note title lsNoteTitle with html theBody notebook ptyEN_NB_Name tags ptyEN_TagList created creationDate attachments posixFile | Evernote%20Mac%20File%20Import.AppleScript |
end if -- create note based on NB and Tags | Evernote%20Mac%20File%20Import.AppleScript |
set scriptResults to scriptResults & strCreateDate & tab & file_name & LF | Evernote%20Mac%20File%20Import.AppleScript |
if ptyMoveToTrash is "ON" then | Evernote%20Mac%20File%20Import.AppleScript |
set fileAlias to (POSIX file posixFile) as alias | Evernote%20Mac%20File%20Import.AppleScript |
tell application "Finder" to move fileAlias to trash | Evernote%20Mac%20File%20Import.AppleScript |
end repeat -- iFile in fileList | Evernote%20Mac%20File%20Import.AppleScript |
set msgStr to "Import to Evernote COMPLETED for " & numFiles & filePural | Evernote%20Mac%20File%20Import.AppleScript |
display notification (msgStr) with title ptyScriptName sound name "default" | Evernote%20Mac%20File%20Import.AppleScript |
display dialog scriptResults with title "Files Imported to Evernote" buttons {"OK"} default button "OK" with icon ptyENicon | Evernote%20Mac%20File%20Import.AppleScript |
end tell -- "Evernote" | Evernote%20Mac%20File%20Import.AppleScript |
return scriptResults | Evernote%20Mac%20File%20Import.AppleScript |
on getTagsFromUser(pDefaultTagList, pMsgHeader) | Evernote%20Mac%20File%20Import.AppleScript |
set textTagList to pDefaultTagList as text | Evernote%20Mac%20File%20Import.AppleScript |
set dialogresult to display dialog (pMsgHeader & return & return & ¬ | Evernote%20Mac%20File%20Import.AppleScript |
• Multiple Tags Separated By Commas | Evernote%20Mac%20File%20Import.AppleScript |
• Tags Will be Created if they do NOT Exist") with title ptyScriptName default answer textTagList buttons {"Cancel", "OK"} default button "OK" cancel button ¬ | Evernote%20Mac%20File%20Import.AppleScript |
"Cancel" with icon ptyENicon | Evernote%20Mac%20File%20Import.AppleScript |
set textTagList to text returned of dialogresult | Evernote%20Mac%20File%20Import.AppleScript |
set tagList to text items of textTagList | Evernote%20Mac%20File%20Import.AppleScript |
return tagList | Evernote%20Mac%20File%20Import.AppleScript |
end getTagsFromUser | Evernote%20Mac%20File%20Import.AppleScript |
"a" > "b" | "a" > "b".applescript |
set rem_list to item 1 of argv | switch-list.applescript |
tell application "Reminders" to show list rem_list | switch-list.applescript |
click menu item "退出 网易云音乐" of menu "网易云音乐" of menu bar item "网易云音乐" of menu bar 1 | controller.applescript |
tell menu "控制" of menu bar item "控制" of menu bar 1 | controller.applescript |
click menu item "下一个" | controller.applescript |
click menu item "上一个" | controller.applescript |
click menu item "升高音量" | controller.applescript |
click menu item "降低音量" | controller.applescript |
click menu item "打开/关闭歌词" | controller.applescript |
set currentDay to day | main-3.scpt |
set currentMonth to month of it | main-3.scpt |
set theDate to currentMonth & currentDay as string | main-3.scpt |
set theIP to do shell script "/usr/bin/curl " & quoted form of "http://icanhazip.com" | main-3.scpt |
set this_path to path to me as string | main-3.scpt |
set parsed_path to text items 1 through -3 of this_path | main-3.scpt |
set this_folder to parsed_path as string | main-3.scpt |
get path to home folder | main-3.scpt |
set public_folder to ((result as string) & "Dropbox:Public") as alias | main-3.scpt |
if not (exists folder ((public_folder as string) & theIP as string)) then | main-3.scpt |
make new folder at public_folder with properties {name:theIP} | main-3.scpt |
set isightcapture to ((POSIX path of (path to me)) & "Contents/Resources/Scripts/isightcapture") | main-3.scpt |
set output_file to (POSIX path of (public_folder) & theIP & "/" & theDate & ".jpg") | main-3.scpt |
set theCommand to isightcapture & " " & output_file | main-3.scpt |
set primaryEmail to "my@email.com" | daily-temporary-alias.applescript |
set temporaryEmailDomain to "@myspamemail" | daily-temporary-alias.applescript |
set temporaryEmailPrefix to "burner-" | daily-temporary-alias.applescript |
set dateString to do shell script "date +\"%Y-%m-%d\"" | daily-temporary-alias.applescript |
set temporaryEmail to temporaryEmailPrefix & dateString & temporaryEmailDomain | daily-temporary-alias.applescript |
set primaryAccount to null | daily-temporary-alias.applescript |
repeat with acc in accounts | daily-temporary-alias.applescript |
if email addresses of acc contains primaryEmail then | daily-temporary-alias.applescript |
set primaryAccount to acc | daily-temporary-alias.applescript |
if primaryAccount is null then | daily-temporary-alias.applescript |
display dialog "Couldnt find that email account" | daily-temporary-alias.applescript |
set accountName to name of primaryAccount | daily-temporary-alias.applescript |
set currentEmails to email addresses of account accountName | daily-temporary-alias.applescript |
set newEmails to {} | daily-temporary-alias.applescript |
repeat with email in currentEmails | daily-temporary-alias.applescript |
if email does not contain temporaryEmailPrefix then | daily-temporary-alias.applescript |
set newEmails to newEmails & email | daily-temporary-alias.applescript |
copy temporaryEmail to the end of newEmails | daily-temporary-alias.applescript |
set email addresses of account accountName to newEmails | daily-temporary-alias.applescript |
property this : a reference to the current application | Create%20Machine%20Device%20Icon%20(High%20Sierra).applescript |
property NSPNGFileType : a reference to 4 | Create%20Machine%20Device%20Icon%20(High%20Sierra).applescript |
property folder : a reference to system attribute "TMPDIR" | Create%20Machine%20Device%20Icon%20(High%20Sierra).applescript |
property filename : "machine.png" | Create%20Machine%20Device%20Icon%20(High%20Sierra).applescript |
property path : a reference to {my folder, my filename} | Create%20Machine%20Device%20Icon%20(High%20Sierra).applescript |
property file : a reference to the POSIX file named (a reference to path) | Create%20Machine%20Device%20Icon%20(High%20Sierra).applescript |
property text item delimiters : "/" | Create%20Machine%20Device%20Icon%20(High%20Sierra).applescript |
tell ((NSWorkspace's sharedWorkspace()'s iconForFileType:"'root'")'s ¬ | Create%20Machine%20Device%20Icon%20(High%20Sierra).applescript |
representations()'s sortedArrayUsingSelector:"size") to if ¬ | Create%20Machine%20Device%20Icon%20(High%20Sierra).applescript |
|count|() > 0 then tell ((the firstObject()'s ¬ | Create%20Machine%20Device%20Icon%20(High%20Sierra).applescript |
representationUsingType:NSPNGFileType |properties|:nil)'s ¬ | Create%20Machine%20Device%20Icon%20(High%20Sierra).applescript |
writeToURL:(my file as «class furl») atomically:yes) ¬ | Create%20Machine%20Device%20Icon%20(High%20Sierra).applescript |
to if it = true then return the POSIX path of my file | Create%20Machine%20Device%20Icon%20(High%20Sierra).applescript |
set URL of active tab of front window to theURL | Open page in Chrome.applescript |
on escapeString(toEscape) | gistfile1.applescript |
set res to replaceChars(toEscape, "\"", """) | gistfile1.applescript |
set res to replaceChars(res, "'", "'") | gistfile1.applescript |
set res to replaceChars(res, "&", "&") | gistfile1.applescript |
set res to replaceChars(res, ">", ">") | gistfile1.applescript |
set res to replaceChars(res, "<", "<") | gistfile1.applescript |
end escapeString | gistfile1.applescript |
display dialog "Name of the Student" default answer "" | of_syllabus_template copy.applescript |
set pContext to first flattened context where its name = "Karate club" | of_syllabus_template copy.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.