text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
|---|---|
set logger to std's import("logger")'s new("dec-syseve-with-sublimetext")
|
dec-syseve-with-sublime-text.applescript
|
script AppDelegate
|
AppDelegate copy 8.applescript
|
property parent : class "NSObject"
|
AppDelegate copy 8.applescript
|
property NSURL : class "NSURL"
|
AppDelegate copy 8.applescript
|
property NSURLRequest : class "NSURLRequest"
|
AppDelegate copy 8.applescript
|
property WKWebView : class "WKWebView"
|
AppDelegate copy 8.applescript
|
property WKWebViewConfiguration : class "WKWebViewConfiguration"
|
AppDelegate copy 8.applescript
|
property theWindow : missing value
|
AppDelegate copy 8.applescript
|
on ok:sender
|
AppDelegate copy 8.applescript
|
current application's NSApp's terminate_(me)
|
AppDelegate copy 8.applescript
|
on applicationWillFinishLaunching:notification
|
AppDelegate copy 8.applescript
|
set theAddress to "http://book.mynavi.jp/wd/widget/300x250.html"
|
AppDelegate copy 8.applescript
|
set z to current application's NSMakeRect(0, 0, 0, 0)
|
AppDelegate copy 8.applescript
|
set c to WKWebViewConfiguration's alloc's init()
|
AppDelegate copy 8.applescript
|
set theWebView to WKWebView's alloc's initWithFrame_configuration_(z, c)
|
AppDelegate copy 8.applescript
|
set s to theWindow's contentView's frame()'s |size|
|
AppDelegate copy 8.applescript
|
set w to width of s
|
AppDelegate copy 8.applescript
|
set h to height of s
|
AppDelegate copy 8.applescript
|
set f to current application's NSMakeRect(0, 64, w, h - 64)
|
AppDelegate copy 8.applescript
|
tell theWebView to setFrame_(f)
|
AppDelegate copy 8.applescript
|
set u to NSURL's URLWithString_(theAddress)
|
AppDelegate copy 8.applescript
|
set r to NSURLRequest's requestWithURL_(u)
|
AppDelegate copy 8.applescript
|
tell theWebView to loadRequest_(r)
|
AppDelegate copy 8.applescript
|
tell the contentView of theWindow to addSubview_(theWebView)
|
AppDelegate copy 8.applescript
|
current application's NSApp's activateIgnoringOtherApps_(true)
|
AppDelegate copy 8.applescript
|
current application's NSApp's runModalForWindow:theWindow
|
AppDelegate copy 8.applescript
|
on applicationDidFinishLaunching:notification
|
AppDelegate copy 8.applescript
|
on applicationWillTerminate:notification
|
AppDelegate copy 8.applescript
|
on applicationShouldTerminate:sender
|
AppDelegate copy 8.applescript
|
return current application's NSTerminateNow
|
AppDelegate copy 8.applescript
|
on applicationShouldTerminateAfterLastWindowClosed:sender
|
AppDelegate copy 8.applescript
|
on applicationShouldHandleReopen:sender hasVisibleWindows:flag
|
AppDelegate copy 8.applescript
|
if flag then
|
AppDelegate copy 8.applescript
|
set theSel to selection
|
Force Play.applescript
|
play item 1 of theSel
|
Force Play.applescript
|
repeat with i from 1 to count of theSel
|
Force Play.applescript
|
set oldCurr to current track
|
Force Play.applescript
|
set player position to ((duration of current track) - 1)
|
Force Play.applescript
|
repeat while oldCurr is current track
|
Force Play.applescript
|
return (array's sortedArrayUsingSelector:"localizedCaseInsensitiveCompare:") as list
|
file3.txt
|
if application "Evernote" is running then
|
evernote_wait_sync.applescript
|
synchronize
|
evernote_wait_sync.applescript
|
repeat with i from 0 to 300
|
evernote_wait_sync.applescript
|
if not isSynchronizing then
|
evernote_wait_sync.applescript
|
return i
|
evernote_wait_sync.applescript
|
set these_items to the selection
|
Convert Comments to Tags.applescript
|
if these_items is {} then error "Please select some contents."
|
Convert Comments to Tags.applescript
|
repeat with this_item in these_items
|
Convert Comments to Tags.applescript
|
set this_comment to the comment of this_item
|
Convert Comments to Tags.applescript
|
if this_comment is not "" then
|
Convert Comments to Tags.applescript
|
set {od, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ","}
|
Convert Comments to Tags.applescript
|
set theTags to text items of this_comment
|
Convert Comments to Tags.applescript
|
set theTags to (parents of this_item) & theTags
|
Convert Comments to Tags.applescript
|
set the tags of this_item to theTags
|
Convert Comments to Tags.applescript
|
set the comment of this_item to ""
|
Convert Comments to Tags.applescript
|
set desiredPosition to {0.5, 0.0}
|
3 - ⬛️🟨 … Right Half.scpt
|
set desiredSize to {0.5, 1.0}
|
3 - ⬛️🟨 … Right Half.scpt
|
tell process "Safari"
|
zombie.applescript
|
repeat 100000
|
zombie.applescript
|
delay random number from 30 to 60
|
zombie.applescript
|
set question to display dialog "Select" buttons {"Unpack", "Repack", "Cancel"}
|
Unpack-Repack-PKG.scpt
|
if answer is equal to "Unpack" then
|
Unpack-Repack-PKG.scpt
|
set theFile to choose file with prompt "Please select the pgk file:" of type {"pkg"}
|
Unpack-Repack-PKG.scpt
|
set extension hidden of theFile to true
|
Unpack-Repack-PKG.scpt
|
set theName to displayed name of theFile
|
Unpack-Repack-PKG.scpt
|
set theOutputFolder to quoted form of (POSIX path of ((container of theFile) as text) & "/" & theName & "_unpacked")
|
Unpack-Repack-PKG.scpt
|
set extension hidden of theFile to false
|
Unpack-Repack-PKG.scpt
|
do shell script "pkgutil --expand " & quoted form of POSIX path of theFile & " " & theOutputFolder
|
Unpack-Repack-PKG.scpt
|
if answer is equal to "Repack" then
|
Unpack-Repack-PKG.scpt
|
set theSource to choose folder with prompt "Please select the folder to be packed"
|
Unpack-Repack-PKG.scpt
|
set theName to displayed name of theSource
|
Unpack-Repack-PKG.scpt
|
set theOutputFolder to quoted form of (POSIX path of (container of theSource as text))
|
Unpack-Repack-PKG.scpt
|
set theSourceFolder to quoted form of ((POSIX path of theSource) as text)
|
Unpack-Repack-PKG.scpt
|
set pkgName to characters 1 thru ((offset of "_" in theName) - 1) of theName as string
|
Unpack-Repack-PKG.scpt
|
do shell script "pkgutil --flatten " & theSourceFolder & " " & theOutputFolder & "/" & pkgName & "_repacked.pkg"
|
Unpack-Repack-PKG.scpt
|
℁
|
getPageTitleAndURLFromSafari.scpt
|
global format
|
getPageTitleAndURLFromSafari.scpt
|
set format to "<a href=\"$url$\" target=\"_blank\">$title$</a>"
|
getPageTitleAndURLFromSafari.scpt
|
set isRunning to isRunning("Safari") of me
|
getPageTitleAndURLFromSafari.scpt
|
if (isRunning) then
|
getPageTitleAndURLFromSafari.scpt
|
my do()
|
getPageTitleAndURLFromSafari.scpt
|
if ((count of document) > 0) then
|
getPageTitleAndURLFromSafari.scpt
|
set u to URL of document 1
|
getPageTitleAndURLFromSafari.scpt
|
set t to name of document 1
|
getPageTitleAndURLFromSafari.scpt
|
set tmp to my replace(format, "$title$", t)
|
getPageTitleAndURLFromSafari.scpt
|
set tmp to my replace(tmp, "$url$", u)
|
getPageTitleAndURLFromSafari.scpt
|
return tmp
|
getPageTitleAndURLFromSafari.scpt
|
on replace(str, org, rep)
|
getPageTitleAndURLFromSafari.scpt
|
set oldDel to AppleScript's text item delimiters
|
getPageTitleAndURLFromSafari.scpt
|
set AppleScript's text item delimiters to org
|
getPageTitleAndURLFromSafari.scpt
|
set myList to text items of str
|
getPageTitleAndURLFromSafari.scpt
|
set AppleScript's text item delimiters to rep
|
getPageTitleAndURLFromSafari.scpt
|
set res to myList as string
|
getPageTitleAndURLFromSafari.scpt
|
set AppleScript's text item delimiters to oldDel
|
getPageTitleAndURLFromSafari.scpt
|
return res
|
getPageTitleAndURLFromSafari.scpt
|
end replace
|
getPageTitleAndURLFromSafari.scpt
|
on isRunning(appname)
|
getPageTitleAndURLFromSafari.scpt
|
return (count of (every process whose name contains appname)) is greater than 0
|
getPageTitleAndURLFromSafari.scpt
|
end isRunning
|
getPageTitleAndURLFromSafari.scpt
|
global textReceived
|
017_challenge-set some-file-metadata.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.