text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
display dialog "*** NOTE NOT SELECTED ***" | EN%20Set%20Note%20Creation%20Date%20from%20Selection%20AS.applescript |
display notification ("Note Created Date set to: " & dCreationDate) with title lsProcessTitle | EN%20Set%20Note%20Creation%20Date%20from%20Selection%20AS.applescript |
to convertIntlDate(textDate) | EN%20Set%20Note%20Creation%20Date%20from%20Selection%20AS.applescript |
set resultDate to the current date | EN%20Set%20Note%20Creation%20Date%20from%20Selection%20AS.applescript |
set the year of resultDate to (text 1 thru 4 of textDate) | EN%20Set%20Note%20Creation%20Date%20from%20Selection%20AS.applescript |
set the month of resultDate to (text 6 thru 7 of textDate) | EN%20Set%20Note%20Creation%20Date%20from%20Selection%20AS.applescript |
set the day of resultDate to (text 9 thru 10 of textDate) | EN%20Set%20Note%20Creation%20Date%20from%20Selection%20AS.applescript |
set the time of resultDate to 0 | EN%20Set%20Note%20Creation%20Date%20from%20Selection%20AS.applescript |
if (length of textDate) > 10 then | EN%20Set%20Note%20Creation%20Date%20from%20Selection%20AS.applescript |
set the hours of resultDate to (text 12 thru 13 of textDate) | EN%20Set%20Note%20Creation%20Date%20from%20Selection%20AS.applescript |
set the minutes of resultDate to (text 15 thru 16 of textDate) | EN%20Set%20Note%20Creation%20Date%20from%20Selection%20AS.applescript |
if (length of textDate) > 16 then | EN%20Set%20Note%20Creation%20Date%20from%20Selection%20AS.applescript |
set the seconds of resultDate to (text 18 thru 19 of textDate) | EN%20Set%20Note%20Creation%20Date%20from%20Selection%20AS.applescript |
return resultDate | EN%20Set%20Note%20Creation%20Date%20from%20Selection%20AS.applescript |
end convertIntlDate | EN%20Set%20Note%20Creation%20Date%20from%20Selection%20AS.applescript |
tell application "System Settings" | dock_ventura.applescript |
set properties to {screen edge:right} | dock_ventura.applescript |
set properties to {screen edge:bottom} | dock_ventura.applescript |
tell application "OmniGraffle Professional 4" | convert ER diagram lines.appleScript |
tell canvas of front window | convert ER diagram lines.appleScript |
set theLines to get lines | convert ER diagram lines.appleScript |
repeat with theLine in lines | convert ER diagram lines.appleScript |
head type of theLine | convert ER diagram lines.appleScript |
tail type of theLine | convert ER diagram lines.appleScript |
set headText to my lineText(head type of theLine) | convert ER diagram lines.appleScript |
set headTextGraphic to make new shape at end of graphics with properties {draws stroke:false, origin:{10, 10}, autosizing:full, size:{29.0, 14.0}, text:{text:headText, alignment:center}, draws shadow:false} | convert ER diagram lines.appleScript |
set labelConnection of headTextGraphic to theLine | convert ER diagram lines.appleScript |
set labelPosition of headTextGraphic to 0.74 | convert ER diagram lines.appleScript |
set labelOffset of headTextGraphic to 11 | convert ER diagram lines.appleScript |
set head type of theLine to "" | convert ER diagram lines.appleScript |
set tailText to my lineText(tail type of theLine) | convert ER diagram lines.appleScript |
set tailTextGraphic to make new shape at end of graphics with properties {draws stroke:false, origin:{10, 10}, autosizing:full, size:{29.0, 14.0}, text:{text:tailText, alignment:center}, draws shadow:false} | convert ER diagram lines.appleScript |
set labelConnection of tailTextGraphic to theLine | convert ER diagram lines.appleScript |
set labelPosition of tailTextGraphic to 0.18 | convert ER diagram lines.appleScript |
set labelOffset of tailTextGraphic to 11 | convert ER diagram lines.appleScript |
set tail type of theLine to "" | convert ER diagram lines.appleScript |
on lineText(lineType) | convert ER diagram lines.appleScript |
if lineType is "CrowBall" then | convert ER diagram lines.appleScript |
return "0..*" | convert ER diagram lines.appleScript |
else if lineType is "CrowBar" then | convert ER diagram lines.appleScript |
return "1..*" | convert ER diagram lines.appleScript |
else if lineType is "DoubleBar" then | convert ER diagram lines.appleScript |
return "1" | convert ER diagram lines.appleScript |
return "unknown" | convert ER diagram lines.appleScript |
end lineText | convert ER diagram lines.appleScript |
set pageText to source of front document | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
set thelist to my findURLsIn:pageText | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
display dialog "What is the link keyword?" default answer "" | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
set seek to text returned of the result | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
set linkPosition to getPositionOfItemInList(seek, thelist) | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
set firstLink to item linkPosition of thelist | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
tell application "Safari" to set URL of front document to firstLink | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
display dialog "The search value was not found" buttons {"OK"} default button "OK" | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
on findURLsIn:theString | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
set anNSString to current application's NSString's stringWithString:theString | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
set theNSDataDetector to current application's NSDataDetector's dataDetectorWithTypes:(current application's NSTextCheckingTypeLink) |error|:(missing value) | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
set theURLsNSArray to theNSDataDetector's matchesInString:theString options:0 range:{location:0, |length|:anNSString's |length|()} | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
return (theURLsNSArray's valueForKeyPath:"URL.absoluteString") as list | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
end findURLsIn: | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
on getPositionOfItemInList(theItem, thelist) | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
repeat with a from 1 to count of thelist | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
if item a of thelist contains theItem then return a | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
end getPositionOfItemInList | Safari%20-%20Open%20specific%20link%20on%20the%20webpage.applescript |
on getTimeInHoursAndMinutes() | save chrome url to selected note of Evernote.applescript |
set timeStr to time string of (current date) | save chrome url to selected note of Evernote.applescript |
set Pos to offset of ":" in timeStr | save chrome url to selected note of Evernote.applescript |
set theHour to characters 1 thru (Pos - 1) of timeStr as string | save chrome url to selected note of Evernote.applescript |
set timeStr to characters (Pos + 1) through end of timeStr as string | save chrome url to selected note of Evernote.applescript |
set theMin to characters 1 thru (Pos - 1) of timeStr as string | save chrome url to selected note of Evernote.applescript |
set Pos to offset of " " in timeStr | save chrome url to selected note of Evernote.applescript |
set theSfx to characters (Pos + 1) through end of timeStr as string | save chrome url to selected note of Evernote.applescript |
return (theHour & ":" & theMin & " " & theSfx) as string | save chrome url to selected note of Evernote.applescript |
end getTimeInHoursAndMinutes | save chrome url to selected note of Evernote.applescript |
on todayISOformat() | save chrome url to selected note of Evernote.applescript |
set theDate to current date | save chrome url to selected note of Evernote.applescript |
set y to text -4 thru -1 of ("0000" & (year of theDate)) | save chrome url to selected note of Evernote.applescript |
set m to text -2 thru -1 of ("00" & ((month of theDate) as integer)) | save chrome url to selected note of Evernote.applescript |
set d to text -2 thru -1 of ("00" & (day of theDate)) | save chrome url to selected note of Evernote.applescript |
return y & "-" & m & "-" & d | save chrome url to selected note of Evernote.applescript |
end todayISOformat | save chrome url to selected note of Evernote.applescript |
set addDateAndTime to (todayISOformat() & " " & getTimeInHoursAndMinutes()) | save chrome url to selected note of Evernote.applescript |
set tabUrl to missing value | save chrome url to selected note of Evernote.applescript |
set theNote to missing value | save chrome url to selected note of Evernote.applescript |
set tabTitle to missing value | save chrome url to selected note of Evernote.applescript |
set activeApp to missing value | save chrome url to selected note of Evernote.applescript |
set activeApp to name of application processes whose frontmost is true | save chrome url to selected note of Evernote.applescript |
if (activeApp as string) is not equal to "Evernote" and (activeApp as string) is not equal to "Google Chrome" and (activeApp as string) is not equal to "Google Chrome Canary" then | save chrome url to selected note of Evernote.applescript |
tell application process (activeApp as string) | save chrome url to selected note of Evernote.applescript |
set tabUrl to value of text field 1 of toolbar 1 of window 1 | save chrome url to selected note of Evernote.applescript |
if tabUrl = "" then | save chrome url to selected note of Evernote.applescript |
if (characters 4 thru 1 of tabUrl as string) is not equal to "http" then | save chrome url to selected note of Evernote.applescript |
set tabUrl to "http://" & tabUrl | save chrome url to selected note of Evernote.applescript |
set tabTitle to (title of window 1) | save chrome url to selected note of Evernote.applescript |
set findUrlInNotes to (find notes tabUrl) -- returns a list of notes | save chrome url to selected note of Evernote.applescript |
if not findUrlInNotes = {} then | save chrome url to selected note of Evernote.applescript |
display notification "已存在于:" & (get title of (item 1 of findUrlInNotes)) | save chrome url to selected note of Evernote.applescript |
set theNote to first item in theNotes | save chrome url to selected note of Evernote.applescript |
set notifyTitle to "[" & (get name of (get notebook of theNote)) & "]" & (get title of theNote) | save chrome url to selected note of Evernote.applescript |
set addContent to "<br/><br/>" & addDateAndTime & "<br/>" & tabTitle & "<br/>" & "<a href=\"" & tabUrl & "\">" & tabUrl & "</a>" | save chrome url to selected note of Evernote.applescript |
append theNote html addContent | save chrome url to selected note of Evernote.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.