text
stringlengths
0
15.7k
source
stringlengths
6
112
set replSize to "/100/"
Thumbnail%20image%20from%20Micro.blog%20post.applescript
else if theCount > 90 then
Thumbnail%20image%20from%20Micro.blog%20post.applescript
set replSize to "/105/"
Thumbnail%20image%20from%20Micro.blog%20post.applescript
else if theCount > 81 then -- 72+ is slightly cut-off, but useable
Thumbnail%20image%20from%20Micro.blog%20post.applescript
set replSize to "/110/"
Thumbnail%20image%20from%20Micro.blog%20post.applescript
else if theCount > 49 then
Thumbnail%20image%20from%20Micro.blog%20post.applescript
set replSize to "/120/"
Thumbnail%20image%20from%20Micro.blog%20post.applescript
tell application _browser to open location "data:text/html;charset=utf-8," & theHTML
Thumbnail%20image%20from%20Micro.blog%20post.applescript
get short name of first process whose frontmost is true
Thumbnail%20image%20from%20Micro.blog%20post.applescript
on GetDefaultWebBrowser()
Thumbnail%20image%20from%20Micro.blog%20post.applescript
set _scpt to "export VERSIONER_PERL_PREFER_32_BIT=yes; " & ¬
Thumbnail%20image%20from%20Micro.blog%20post.applescript
"perl -MMac::InternetConfig -le " & ¬
Thumbnail%20image%20from%20Micro.blog%20post.applescript
"'print +(GetICHelper \"http\")[1]'"
Thumbnail%20image%20from%20Micro.blog%20post.applescript
return do shell script _scpt
Thumbnail%20image%20from%20Micro.blog%20post.applescript
end GetDefaultWebBrowser
Thumbnail%20image%20from%20Micro.blog%20post.applescript
on truncateTitle(theAlt)
Thumbnail%20image%20from%20Micro.blog%20post.applescript
if (count words of theAlt) > 10 then set theAlt to (text (word 1) thru (word 10) of theAlt & "….") as string
Thumbnail%20image%20from%20Micro.blog%20post.applescript
if theAlt = "" then set theAlt to "Image from Micro.blog; description unavailable."
Thumbnail%20image%20from%20Micro.blog%20post.applescript
return theAlt
Thumbnail%20image%20from%20Micro.blog%20post.applescript
end truncateTitle
Thumbnail%20image%20from%20Micro.blog%20post.applescript
on replaceThumbSize(theText, theSize)
Thumbnail%20image%20from%20Micro.blog%20post.applescript
set origText to theText -- save the original in case of error
Thumbnail%20image%20from%20Micro.blog%20post.applescript
set AppleScript's text item delimiters to "/150/"
Thumbnail%20image%20from%20Micro.blog%20post.applescript
set theStrings to text items of theText
Thumbnail%20image%20from%20Micro.blog%20post.applescript
set AppleScript's text item delimiters to theSize
Thumbnail%20image%20from%20Micro.blog%20post.applescript
set theText to theStrings as string
Thumbnail%20image%20from%20Micro.blog%20post.applescript
set theText to origText
Thumbnail%20image%20from%20Micro.blog%20post.applescript
end replaceThumbSize
Thumbnail%20image%20from%20Micro.blog%20post.applescript
set text_frame_a to make new text frame at page 1 with properties {geometric bounds:{1, 1, 6, 3}}
Script 26-3.applescript
set text_frame_b to make new text frame at page 1 with properties {geometric bounds:{1, 5, 6, 7}}
Script 26-3.applescript
make new group at page 1 with properties {group items:{text_frame_a, text_frame_b}}
Script 26-3.applescript
get every page item of page 1
Script 26-3.applescript
fmGUI_ManageSecurity_PrivSet_Update_ExtendedPrivileges({extendedPrivList:{"Access via FileMaker Network (fmapp)", "Require re-authentication after the specified minutes in sleep/background. Go only. (fmreauthenticate10)", "Require re-authentication after the specified minutes in sleep/background. Go only. (fmreauthenticate0)"}})
fmGUI_ManageSecurity_PrivSet_Update_ExtendedPrivileges.applescript
set defaultPrefs to {extendPrivRows:null}
fmGUI_ManageSecurity_PrivSet_Update_ExtendedPrivileges.applescript
set extendPrivRows to rows of table 1 of scroll area 1 of window 1
fmGUI_ManageSecurity_PrivSet_Update_ExtendedPrivileges.applescript
repeat with oneExtendedPrivRow in extendPrivRows
fmGUI_ManageSecurity_PrivSet_Update_ExtendedPrivileges.applescript
set oneExtendedPrivRow to contents of oneExtendedPrivRow
fmGUI_ManageSecurity_PrivSet_Update_ExtendedPrivileges.applescript
set oneExtendedPrivCheckbox to checkbox 1 of oneExtendedPrivRow
fmGUI_ManageSecurity_PrivSet_Update_ExtendedPrivileges.applescript
set oneExtendedPrivName to name of oneExtendedPrivCheckbox
fmGUI_ManageSecurity_PrivSet_Update_ExtendedPrivileges.applescript
if oneExtendedPrivName is in extendedPrivList of prefs then
fmGUI_ManageSecurity_PrivSet_Update_ExtendedPrivileges.applescript
fmGUI_CheckboxSet({objRef:oneExtendedPrivCheckbox, objValue:1})
fmGUI_ManageSecurity_PrivSet_Update_ExtendedPrivileges.applescript
fmGUI_CheckboxSet({objRef:oneExtendedPrivCheckbox, objValue:0})
fmGUI_ManageSecurity_PrivSet_Update_ExtendedPrivileges.applescript
error "unable to fmGUI_ManageSecurity_PrivSet_Update_ExtendedPrivileges - " & errMsg number errNum
fmGUI_ManageSecurity_PrivSet_Update_ExtendedPrivileges.applescript
property MSHMonitor : class "MSHMonitor"
AppDelegate copy 17.applescript
property theTextFiled : missing value
AppDelegate copy 17.applescript
set monitorObj to MSHMonitor's checkMonitor_("this is argument")
AppDelegate copy 17.applescript
set firstItem to item 2 of monitorObj
AppDelegate copy 17.applescript
log firstItem
AppDelegate copy 17.applescript
on buttonClicked_(sender)
AppDelegate copy 17.applescript
set textValue to theTextFiled's stringValue
AppDelegate copy 17.applescript
display alert "Hello" & textValue & "!"
AppDelegate copy 17.applescript
log "The buttonClicked_"
AppDelegate copy 17.applescript
testMethod()
AppDelegate copy 17.applescript
on testMethod()
AppDelegate copy 17.applescript
log "点击了按钮"
AppDelegate copy 17.applescript
on openSafari()
AppDelegate copy 17.applescript
make new tab with properties {URL:"https://www.apple.com.cn"}
AppDelegate copy 17.applescript
on sendAlertMail()
AppDelegate copy 17.applescript
set theFrom to ""
AppDelegate copy 17.applescript
set theTos to {}
AppDelegate copy 17.applescript
set theSubject to "This is the subject, to tell you something of Market is happening"
AppDelegate copy 17.applescript
set theContent to "This is the content, will show you how things are happeing, the world is small but people are greedy, if you want to do something"
AppDelegate copy 17.applescript
set theSignature to ""
AppDelegate copy 17.applescript
set theAttachments to {}
AppDelegate copy 17.applescript
set theDelay to 1
AppDelegate copy 17.applescript
delay 30.0
AppDelegate copy 17.applescript
end sendAlertMail
AppDelegate copy 17.applescript
"Clear stored Safari URL list?" buttons {"Cancel", "Clear"} ¬
Clear Safari URLs.applescript
default button 2 with icon note
Clear Safari URLs.applescript
if button returned of result is "Clear" then
Clear Safari URLs.applescript
set desiredSize to {1.0, 1.0}
23 - 🟨🟨🟨🟨🟨🟨 … Maximize.scpt
do shell script ("curl ftp://" & user & ":" & thePassword & "@" & theURL & strFilePath & " >> " & quoted form of (localdirectory & theFile))
lns1.scpt
set strFilePath to quoted form of (theDirectory & theFile as text) -- get quoted form to escape other characters
lns1.scpt
set localdirectory to quoted form of ("/Volumes/Commercial/H/Hamburger_4101/Litho_Flat_Sheets/Received_ArtWork/" & strJobName & "/" as text) -- get quoted form to escape other characters
lns1.scpt
return "Complete"
lns1.scpt
return "Error" -- this never gets executed BTW
lns1.scpt
set AppleScript's text item delimiters to "\\"
lns1.scpt
my createNewWindowWithTitle("My New Window", 400, 200)
lns1.scpt
tell application "iClip"
lns1.scpt
get current clipping
lns1.scpt
do shell script "sips --cropOffset 1 0 -c 500 500 -o /Users/Robert/Working/out.pdf /Users/Robert/Working/in.pdf"
lns1.scpt
do shell script "/usr/bin/sips --cropOffset 1 1 --cropToHeightWidth 200 200 --out ~/Desktop/out.pdf ~/Desktop/in.pdf"
lns1.scpt
property PDFDocument : a reference to current application's PDFDocument
lns1.scpt
tell application "Finder" to set sourceFiles to selection as alias list
lns1.scpt
if (count sourceFiles) ≠ 1 then return
lns1.scpt
tell application "Finder" to set LeFi to (item 1 of sourceFiles)
lns1.scpt
set sourceFile to POSIX path of LeFi
lns1.scpt
if sourceFile does not end with ".pdf" then return
lns1.scpt
set sourceFile to current application's |NSURL|'s fileURLWithPath:sourceFile
lns1.scpt
set sourceDoc to (current application's PDFDocument's alloc()'s initWithURL:sourceFile)
lns1.scpt
set aPage to (sourceDoc's pageAtIndex:0)
lns1.scpt
set {{Xm1, Ym1}, {Xm2, Ym2}} to (aPage's boundsForBox:(current application's kPDFDisplayBoxMediaBox))
lns1.scpt
set {{Lex1, Ley1}, {Lex2, Ley2}} to (aPage's boundsForBox:(current application's kPDFDisplayBoxCropBox))
lns1.scpt
if {{Xm1, Ym1}, {Xm2, Ym2}} is {{Lex1, Ley1}, {Lex2, Ley2}} then errorAlert("Page 1 has no crop box.")
lns1.scpt
set Ley1 to Ym2 - Ley1 - Ley2
lns1.scpt
set FoldNam to (name of LeFi) & " Pages"
lns1.scpt
set TargetNam to name of LeFi
lns1.scpt
try -- If folder already exists then proceed
lns1.scpt
make new folder at parent of LeFi with properties {name:FoldNam}
lns1.scpt
set DestFold to POSIX path of (((parent of LeFi) as text) & FoldNam & ":") as text
lns1.scpt