text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
on markedHandler(filePath)
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
tell application id "com.brettterpstra.marked2"
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
end markedHandler
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
on editorHandler(selectedEditor, filePath)
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
tell application selectedEditor
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
end editorHandler
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
on alignHandler(alignWindows, selectedEditor)
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
if alignWindows then
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set lngWidth to word 3 of (do shell script "defaults read /Library/Preferences/com.apple.windowserver | grep -w Width")
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set lngHeight to word 3 of (do shell script "defaults read /Library/Preferences/com.apple.windowserver | grep -w Height")
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set lngHalf to lngWidth / 2
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set lngHeight to lngHeight - 22
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
tell application id "sevs"
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
if alignWindowsDefault then
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
if selectedEditor ≠ "nvALT" then
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
tell process "Marked 2" to tell window 1 to set {position, size} to {{lngHalf, 22}, {lngHalf, lngHeight}}
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
tell process selectedEditor to tell window 1 to set {position, size} to {{0, 22}, {lngHalf, lngHeight}}
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
else if selectedEditor = "nvALT" and nvPosition then
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
tell process "Marked 2" to tell window 1 to set {position, size} to {{0, 22}, {lngHalf, lngHeight}}
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
tell process selectedEditor to tell window 1 to set {position, size} to {{lngHalf, 22}, {lngHalf, lngHeight}}
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
end alignHandler
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set getList to "cd " & notesFolder & "; ls -at " & searchNotes & " | head -n" & xNotes
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set lastModified to do shell script getList
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set {input, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set notesList to every text item of lastModified
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set AppleScript's text item delimiters to input
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set selectedNote to item 1 of (choose from list the notesList with title "The " & xNotes & " last modified notes" with prompt "Choose note to edit:")
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
cancelHandler(selectedNote)
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set filePath to POSIX file (notesFolder & selectedNote) as alias
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set defaultApp to item 1 of editorList -- Alternatively specify a default like this {"FoldingText"}
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set selectedEditor to item 1 of (choose from list the editorList with title "Editor List" default items defaultApp)
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
cancelHandler(selectedEditor)
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
if alwaysMarked then -- Skip prompt completely & preview directly
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
markedHandler(filePath)
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
editorHandler(selectedEditor, filePath)
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
alignHandler(alignWindows, selectedEditor)
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
if markedDialogDefault ≠ true then
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set buttonNumber to 1
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set buttonNumber to 2
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
if openMarked then
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set openMarkedTitle to "Open in Marked, too?"
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
set getButton to display dialog openMarkedTitle buttons {"No", "Yes"} default button buttonNumber cancel button 1 with title "Preview" with icon path to resource "ApplicationIcon.icns" in bundle (path to application "Marked 2")
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
on error -- Don't open Marked
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
else -- No preview, just open the editor
|
Edit%20Last%20Modified%20Note%20and%20Preview%20in%20Marked.scpt
|
on run jsfile
|
jsChrome.scpt
|
set p to POSIX path of current_path
|
jsChrome.scpt
|
tell application "google chrome"
|
jsChrome.scpt
|
execute javascript (read (p & jsfile))
|
jsChrome.scpt
|
return "Evaluated content of " & p & jsfile
|
jsChrome.scpt
|
set allDatabases to every database
|
DevonThink.applescript
|
get 1st database whose name = "Programming"
|
DevonThink.applescript
|
set pro to 1st database whose name = "Programming"
|
DevonThink.applescript
|
set trashByName to get 1st record of pro whose name = "Trash"
|
DevonThink.applescript
|
set trashBylocation to get 1st record of pro whose location = "/"
|
DevonThink.applescript
|
set theGroup to get record at "/Bootstrap"
|
DevonThink.applescript
|
set bootstrapGroup to get record at "/Bootstrap" in (database named "Programming")
|
DevonThink.applescript
|
set bootstrapChildren to get children of bootstrapGroup
|
DevonThink.applescript
|
set bootstrapChildren2 to get children of (get record at "/Bootstrap" in (database named "Programming"))
|
DevonThink.applescript
|
open location "https://www.happysocks.com"
|
Safari - open website.applescript
|
click (menu item "Next") of (menu "Playback") of menu bar 1
|
Next song.applescript
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets({sourceTable:"SomeSourceTableName", effectTable:"NameOfTableToUpdate", fullAccessAccountName:"admin", fullAccessPassword:""})
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
on fmGUI_ManageSecurity_CopyTableForAllPrivSets(prefs)
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
set defaultPrefs to {sourceTable:null, effectTable:null, fullAccessAccountName:null, fullAccessPassword:null}
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
set credentials to {fullAccessAccountName:fullAccessAccountName of prefs, fullAccessPassword:fullAccessPassword of prefs}
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
set customPrivileges to "Custom privileges"
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
set listPrivSetNames to fmGUI_ManageSecurity_PrivSet_Names(credentials)
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
repeat with onePrivSetName in listPrivSetNames
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
set onePrivSetName to contents of onePrivSetName
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
fmGUI_ManageSecurity_PrivSet_OpenForEdit({privSetName:onePrivSetName} & credentials)
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
if accessRecord of fmGUI_ManageSecurity_PrivSet_GetInfo({getAccessInfo:false}) contains customPrivileges then
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
fmGUI_ManageSecurity_PrivSet_Update_AccessRecord_Open({accessRecord:customPrivileges})
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
fmGUI_ManageSecurity_AccessRecord_CopyTable({sourceTable:sourceTable of prefs, effectTable:effectTable of prefs, allowFieldAccessOverride:true})
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
return fmGUI_ManageSecurity_Save(credentials)
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
error "unable to fmGUI_ManageSecurity_CopyTableForAllPrivSets - " & errMsg number errNum
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
end fmGUI_ManageSecurity_CopyTableForAllPrivSets
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
on fmGUI_ManageSecurity_AccessRecord_CopyTable(prefs)
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
tell application "htcLib" to fmGUI_ManageSecurity_AccessRecord_CopyTable(prefs)
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
end fmGUI_ManageSecurity_AccessRecord_CopyTable
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
on fmGUI_ManageSecurity_PrivSet_GetInfo(prefs)
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
tell application "htcLib" to fmGUI_ManageSecurity_PrivSet_GetInfo(prefs)
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
end fmGUI_ManageSecurity_PrivSet_GetInfo
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
tell application "htcLib" to fmGUI_ManageSecurity_PrivSet_Names(prefs)
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
on fmGUI_ManageSecurity_PrivSet_Update_AccessRecord_Open(prefs)
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
tell application "htcLib" to fmGUI_ManageSecurity_PrivSet_Update_AccessRecord_Open(prefs)
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
end fmGUI_ManageSecurity_PrivSet_Update_AccessRecord_Open
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
tell application "htcLib" to fmGUI_ManageSecurity_Save(prefs)
|
fmGUI_ManageSecurity_CopyTableForAllPrivSets.applescript
|
property NSError : class "NSError"
|
open_link_copied_to_clipboard_in_BBEdit.applescript
|
property NSURL : class "NSURL"
|
open_link_copied_to_clipboard_in_BBEdit.applescript
|
property NSURLConnection : class "NSURLConnection"
|
open_link_copied_to_clipboard_in_BBEdit.applescript
|
property NSURLResponse : class "NSURLResponse"
|
open_link_copied_to_clipboard_in_BBEdit.applescript
|
on getRemoteContents(aURL)
|
open_link_copied_to_clipboard_in_BBEdit.applescript
|
set vURL to aURL as string
|
open_link_copied_to_clipboard_in_BBEdit.applescript
|
set vNSURL to (NSURL's URLWithString:vURL)
|
open_link_copied_to_clipboard_in_BBEdit.applescript
|
set vRequest to NSURLRequest's requestWithURL:vNSURL cachePolicy:(NSURLRequestReloadIgnoringLocalCacheData) timeoutInterval:10
|
open_link_copied_to_clipboard_in_BBEdit.applescript
|
set {vDownloadedData, vHTTPURLResponse} to NSURLConnection's sendSynchronousRequest:vRequest returningResponse:(reference) |error|:(missing value)
|
open_link_copied_to_clipboard_in_BBEdit.applescript
|
set vDownloadedNSString to NSString's alloc()'s initWithData:(vDownloadedData) encoding:(NSUTF8StringEncoding)
|
open_link_copied_to_clipboard_in_BBEdit.applescript
|
set vMIMEType to MIMEType of vHTTPURLResponse
|
open_link_copied_to_clipboard_in_BBEdit.applescript
|
set vTextEncoding to textEncodingName of vHTTPURLResponse
|
open_link_copied_to_clipboard_in_BBEdit.applescript
|
set vTextEncoding to missing value
|
open_link_copied_to_clipboard_in_BBEdit.applescript
|
set vURLValue to |URL| of vHTTPURLResponse
|
open_link_copied_to_clipboard_in_BBEdit.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.