text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
end copyThat | clipboard copy 2.applescript |
on copyThatWord() | clipboard copy 2.applescript |
set theCopiedItem to copyThat() | clipboard copy 2.applescript |
if (count of words in theCopiedItem) is 1 then return theCopiedItem | clipboard copy 2.applescript |
end copyThatWord | clipboard copy 2.applescript |
set logger to std's import("logger")'s new("clipboard") | clipboard copy 2.applescript |
set image_file to choose file with prompt "Please select an image file:" of type "public.image" | Script 22-3.applescript |
set the_image to open image_file | Script 22-3.applescript |
tell the_image | Script 22-3.applescript |
set {the_width, the_height} to dimensions | Script 22-3.applescript |
set file_type to file type | Script 22-3.applescript |
set color_space to color space | Script 22-3.applescript |
set bit_depth to bit depth | Script 22-3.applescript |
set res to resolution | Script 22-3.applescript |
on error error_text | Script 22-3.applescript |
display dialog "The file you picked couldn't be analyzed for some reason." buttons {"OK"} default button 1 with icon stop | Script 22-3.applescript |
set comment of image_file to "Image information: | Script 22-3.applescript |
File type: " & file_type & " | Script 22-3.applescript |
Width: " & the_width & ", height: " & the_height & " | Script 22-3.applescript |
Resolution: " & res & " | Script 22-3.applescript |
Color space: " & color_space & " | Script 22-3.applescript |
Bit depth: " & bit_depth | Script 22-3.applescript |
set theWindowList to every Finder window whose index is not 1 | close-bg.applescript |
close Finder window (index of w) | close-bg.applescript |
set bounds of window 1 to {1, 1, 1281, 721} | resize-to-720p.applescript |
tell application "MacSQL3" | Script 25-11.applescript |
set result_set to do query "select * from some_table" results as none | Script 25-11.applescript |
set result_text to "" | Script 25-11.applescript |
set row_num to 1 | Script 25-11.applescript |
set the_values to tab delimited values of row row_num of result_set | Script 25-11.applescript |
set result_text to result_text & the_values & linefeed | Script 25-11.applescript |
set rowNum to rowNum + 1 | Script 25-11.applescript |
delete result_set | Script 25-11.applescript |
return result_text | Script 25-11.applescript |
set testt to "test test" | Title Case Shell Script.applescript |
do script "echo " & testt & " | tr " & quote & "[:upper:]" & quote & " " & quote & "[:lower:]" & quote & " | perl -ane ' foreach $wrd ( @F ) { print ucfirst($wrd)." & quote & " " & quote & "; } print " & quote & " | Title Case Shell Script.applescript |
" & quote & " ; '" | Title Case Shell Script.applescript |
set theTitle to the text returned of (display dialog "Enter the title:" default answer "") | save_jokes_into_evernote.applescript |
set theJoke to (the clipboard as text) | save_jokes_into_evernote.applescript |
set theNotebook to "Jokes" | save_jokes_into_evernote.applescript |
set theTag to {"Joke", "Fun"} | save_jokes_into_evernote.applescript |
create note title theTitle with text theJoke notebook theNotebook tags theTag | save_jokes_into_evernote.applescript |
delete folder (workflowCacheFolder of config) | clearcache.applescript |
delete user playlist (workflowPlaylistName of config) | clearcache.applescript |
set source_file to choose file with prompt "Where is the file?" | Get File Name Elements.applescript |
baseName & " " & dispName & " " & nameExt | Get File Name Elements.applescript |
fmGUI_ManageSecurity_AccessRecord_CopyTable({sourceTable:"Connector", effectTable:"Selector"}) | fmGUI_ManageSecurity_AccessRecord_CopyTable.applescript |
set defaultPrefs to {sourceTable:null, effectTable:null, allowFieldAccessOverride:false} | fmGUI_ManageSecurity_AccessRecord_CopyTable.applescript |
set currentAccess to fmGUI_ManageSecurity_AccessRecord_GetInfo_OneTable({tableName:sourceTable of prefs}) | fmGUI_ManageSecurity_AccessRecord_CopyTable.applescript |
fmGUI_ManageSecurity_PrivSet_Update_AccessRecord_OneTable({baseTable:effectTable of prefs, allowFieldAccessOverride:allowFieldAccessOverride of prefs} & currentAccess) | fmGUI_ManageSecurity_AccessRecord_CopyTable.applescript |
error "unable to fmGUI_ManageSecurity_AccessRecord_CopyTable - " & errMsg number errNum | fmGUI_ManageSecurity_AccessRecord_CopyTable.applescript |
set theSel to first item of theSel | Make URL Link.applescript |
set theURL to URL of theSel as string | Make URL Link.applescript |
property name : "crypto" | +crypto.applescript |
property id : "chri.sk.applescript.lib:crypto" | +crypto.applescript |
property NSData : a reference to NSData of this | +crypto.applescript |
property NSDataBase64Encoding64CharacterLineLength : a reference to 1 | +crypto.applescript |
property NSDataBase64DecodingIgnoreUnknownCharacters : a reference to 1 | +crypto.applescript |
on base64Decode(s) | +crypto.applescript |
(NSString's alloc()'s initWithData:(NSData's alloc()'s ¬ | +crypto.applescript |
initWithBase64EncodedString:s options:1) ¬ | +crypto.applescript |
encoding:(NSUTF8StringEncoding)) as text | +crypto.applescript |
end base64Decode | +crypto.applescript |
on base64Encode(s) | +crypto.applescript |
(((NSString's stringWithString:s)'s ¬ | +crypto.applescript |
dataUsingEncoding:(NSUTF8StringEncoding))'s ¬ | +crypto.applescript |
base64EncodedStringWithOptions:1) as text | +crypto.applescript |
end base64Encode | +crypto.applescript |
on base64EncodeFromFile:fp | +crypto.applescript |
set d to NSData's dataWithContentsOfFile:fp | +crypto.applescript |
(d's base64EncodedStringWithOptions:(NSDataBase64Encoding64CharacterLineLength)) as text | +crypto.applescript |
end base64EncodeFromFile: | +crypto.applescript |
set cmd to "/usr/local/bin/wget -nv -P /path/to/dir http://www.google.com 2>&1" | do shell script "wget 2>&1".applescript |
set var to do shell script cmd | do shell script "wget 2>&1".applescript |
set value of text field 1 of group 1 of sheet 1 of window 1 to "50" | Resize to 1x 1.applescript |
set value of text field 2 of group 1 of sheet 1 of window 1 to "50" | Resize to 1x 1.applescript |
set value of text field 3 of group 1 of sheet 1 of window 1 to "72" | Resize to 1x 1.applescript |
click of button 1 of sheet 1 of window 1 | Resize to 1x 1.applescript |
set volume 2 | alarm_clock_spotify.scpt |
if sound volume is less than 80 then | alarm_clock_spotify.scpt |
set entrada to choose folder with prompt "Selecciona la carpeta:" | folderDMG.scpt |
if kind of entrada is "Folder" then | folderDMG.scpt |
set folderOrigen to POSIX path of entrada | folderDMG.scpt |
set guardaTID to AppleScript's text item delimiters | folderDMG.scpt |
set folderOrigen to text 1 thru text item -1 of folderOrigen | folderDMG.scpt |
set parentDir to text 1 thru text item -2 of folderOrigen & "/" | folderDMG.scpt |
set AppleScript's text item delimiters to guardaTID | folderDMG.scpt |
tell application "Finder" to set nombreDMG to name of (entrada as alias) | folderDMG.scpt |
set directorioSalida to parentDir & nombreDMG & ".dmg" | folderDMG.scpt |
set archivoDMG to (do shell script "hdiutil create -volname " & quoted form of nombreDMG & " -srcfolder " & quoted form of folderOrigen & " -format UDZO -ov " & quoted form of directorioSalida) | folderDMG.scpt |
display notification "En:" & directorioSalida with title "Imagen de disco creada" | folderDMG.scpt |
notify with name "IM Received" title whoDidIt description message application name "iChat Growl AppleScript" sticky no | iChatGrowl.applescript |
notify with name "IM Received" title whoDidIt description message application name "iChat Growl AppleScript" sticky no image buddyIcon | iChatGrowl.applescript |
set chromeWindow to front window | chrometabs2markdown.scpt |
set tabUrl to (URL of t) | chrometabs2markdown.scpt |
set tabLine to ("- [" & tabTitle & "](" & tabUrl & ")") | chrometabs2markdown.scpt |
copy tabLine to the end of urlList | chrometabs2markdown.scpt |
set text item delimiters to linefeed | chrometabs2markdown.scpt |
set the clipboard to urlList as text | chrometabs2markdown.scpt |
return urlList as text | chrometabs2markdown.scpt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.