text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
end make_links_folder
|
replacing tags with images.applescript
|
on find_graphic_file(graphics_folder_path, the_graphic_name)
|
replacing tags with images.applescript
|
return to (file 1 of folder graphics_folder_path whose name begins with the_graphic_name) as alias
|
replacing tags with images.applescript
|
end find_graphic_file
|
replacing tags with images.applescript
|
on prepare_graphic(the_original_file, the_graphic_name, doc_folder_path, required_height)
|
replacing tags with images.applescript
|
tell application "Adobe Photoshop CS4"
|
replacing tags with images.applescript
|
set display dialogs to never
|
replacing tags with images.applescript
|
open the_original_file
|
replacing tags with images.applescript
|
resize image resolution 200 resample method none
|
replacing tags with images.applescript
|
resize image height required_height as points resample method bicubic
|
replacing tags with images.applescript
|
change mode to grayscale
|
replacing tags with images.applescript
|
adjust art layers using levels adjustment with options {input range start:0, input range end:255, output range start:0, output range end:255, input range gamma:2.0}
|
replacing tags with images.applescript
|
filter art layers using unsharp mask with options {amount:200, radius:0.5, threshold:0}
|
replacing tags with images.applescript
|
save in file (doc_folder_path & "Links:" & the_graphic_name & ".tif") as TIFF appending no extension with options {class:TIFF save options, byte order:Mac OS, image compression:none, save layers:false, transparency:false}
|
replacing tags with images.applescript
|
set display dialogs to always
|
replacing tags with images.applescript
|
close current document saving no
|
replacing tags with images.applescript
|
return (doc_folder_path & "Links:" & the_graphic_name & ".tif")
|
replacing tags with images.applescript
|
end prepare_graphic
|
replacing tags with images.applescript
|
moveformon's moveformon({all:true})
|
moveForMonAll.applescript
|
display dialog "hoge "
|
test copy 5.applescript
|
if value of checkbox of row 8 of table 1 of scroll area 1 of group 1 of window 1 as boolean then
|
disable.applescript
|
activate (display alert ("Internet sharing is already disabled.") giving up after 1)
|
disable.applescript
|
display alert "Couldn't stop Internet Sharing." message err as critical
|
disable.applescript
|
do script "rsync -aEh --delete --exclude=PATTERN --progress '/path/to/source' '/path/to/destination'"
|
duplicate-volume.scpt
|
set userPrefix to ""
|
Create OSC trigger for cue x.applescript
|
set userSuffix to "."
|
Create OSC trigger for cue x.applescript
|
set userInput to display dialog "QLab Cue?" default answer "" buttons {"Cancel", "Continue"} default button "Continue"
|
Create OSC trigger for cue x.applescript
|
set cueNumber to text returned of userInput
|
Create OSC trigger for cue x.applescript
|
set theNetwork to last item of (selected as list)
|
Create OSC trigger for cue x.applescript
|
set patch of theNetwork to userPatch
|
Create OSC trigger for cue x.applescript
|
set osc message type of theNetwork to custom
|
Create OSC trigger for cue x.applescript
|
set custom message of theNetwork to ("/cue/" & userPrefix & cueNumber & userSuffix & "/go")
|
Create OSC trigger for cue x.applescript
|
ο»Ώ tell application "Finder"
|
Script 9β2.applescript
|
set documents_folder to folder "Documents" of home
|
Script 9β2.applescript
|
set backup_folder to folder "Backup Files" of disk "Backup Server"
|
Script 9β2.applescript
|
set file_name to "Accounts Database.fp7"
|
Script 9β2.applescript
|
set original_file to file file_name of documents_folder
|
Script 9β2.applescript
|
set original_modification_date to modification date of original_file
|
Script 9β2.applescript
|
set backup_file to file file_name of backup_folder
|
Script 9β2.applescript
|
set backup_modification_date to modification date of backup_file
|
Script 9β2.applescript
|
if original_modification_date > backup_modification_date then
|
Script 9β2.applescript
|
duplicate original_file to backup_folder with replacing
|
Script 9β2.applescript
|
set primaryDomains to {"@email.com", "@name.com", "@somethingelse.com"}
|
recipient-to-alias.applescript
|
on selectedEmailRecipient()
|
recipient-to-alias.applescript
|
set theMessages to selected messages of first message viewer
|
recipient-to-alias.applescript
|
set theMessage to first item of theMessages
|
recipient-to-alias.applescript
|
set allHeaders to all headers of theMessage
|
recipient-to-alias.applescript
|
set toEmailRegex to "\\b^To: [A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\\b"
|
recipient-to-alias.applescript
|
set emailRegex to "\\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}\\b"
|
recipient-to-alias.applescript
|
set extractScript to "echo " & quoted form of allHeaders
|
recipient-to-alias.applescript
|
set extractScript to extractScript & " | grep -Eio '" & toEmailRegex & "' " -- limit to only the To: address
|
recipient-to-alias.applescript
|
set extractScript to extractScript & " | grep -Eio '" & emailRegex & "' " -- get the actual email
|
recipient-to-alias.applescript
|
set extractedEmail to do shell script extractScript
|
recipient-to-alias.applescript
|
end selectedEmailRecipient
|
recipient-to-alias.applescript
|
copy primaryEmail to the end of newEmails
|
recipient-to-alias.applescript
|
set recipient to my selectedEmailRecipient()
|
recipient-to-alias.applescript
|
repeat with domain in primaryDomains
|
recipient-to-alias.applescript
|
if recipient contains domain then
|
recipient-to-alias.applescript
|
copy recipient to the end of newEmails
|
recipient-to-alias.applescript
|
tell application "Moom"
|
moomDev.applescript
|
arrange windows according to snapshot named "Dev"
|
moomDev.applescript
|
on is_year(the_text)
|
RegExpExample.applescript
|
set the_pattern to "[[:digit:]]{4}"
|
RegExpExample.applescript
|
return RegExpUtil's has_match(the_text, the_pattern)
|
RegExpExample.applescript
|
end is_year
|
RegExpExample.applescript
|
on isloated_word(the_text)
|
RegExpExample.applescript
|
set the_pattern to ""
|
RegExpExample.applescript
|
return RegExpUtil's match(the_text, the_pattern)
|
RegExpExample.applescript
|
end isloated_word
|
RegExpExample.applescript
|
on not_char(the_text)
|
RegExpExample.applescript
|
set the_pattern to "[^a]+"
|
RegExpExample.applescript
|
end not_char
|
RegExpExample.applescript
|
on getScreens()
|
displays.applescript
|
set tmp to do shell script "PWD"
|
displays.applescript
|
set myPath to POSIX path of (path to me) as string
|
displays.applescript
|
set dirname to (do shell script "dirname \"" & myPath & "\"") as string
|
displays.applescript
|
set scrString to do shell script "\"" & dirname & "/screens\""
|
displays.applescript
|
set scrRes to explode(",", scrString)
|
displays.applescript
|
return scrRes
|
displays.applescript
|
end getScreens
|
displays.applescript
|
on getDisplayBounds()
|
displays.applescript
|
set scrRes to getScreens()
|
displays.applescript
|
set dockProperties to get properties
|
displays.applescript
|
if autohide of dockProperties is false then
|
displays.applescript
|
set dockWidth to item 1 of dockDimensions
|
displays.applescript
|
set screenEdge to screen edge of dockProperties
|
displays.applescript
|
if screenEdge is bottom then
|
displays.applescript
|
set item 4 of scrRes to (item 4 of scrRes) - dockHeight
|
displays.applescript
|
else if screenEdge is left then
|
displays.applescript
|
set item 1 of scrRes to dockWidth
|
displays.applescript
|
set item 4 of scrRes to (item 4 of scrRes) - dockWidth
|
displays.applescript
|
else if screenEdge is right then
|
displays.applescript
|
set item 3 of scrRes to (item 3 of scrRes) - dockWidth
|
displays.applescript
|
end getDisplayBounds
|
displays.applescript
|
set username to (display dialog "Please enter your Username:" default answer "")
|
driveutility.scpt
|
set user to the text returned of username
|
driveutility.scpt
|
set userpass to display dialog "Please enter your Password:" default answer "" with hidden answer
|
driveutility.scpt
|
set pass to the text returned of userpass
|
driveutility.scpt
|
if not (disk "Data" exists) then
|
driveutility.scpt
|
mount volume "smb://[LOCATION TO SERVER DRIVE]/Data" as user name user with password pass
|
driveutility.scpt
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.