text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
set the_price to "$" & "6"
|
operators.applescript
|
set the_price to 6 & " Dollar" # first operand is a number and not a string
|
operators.applescript
|
set the_price to (6 as text) & " Dollar"
|
operators.applescript
|
"Ice cream" = "carrot"
|
operators.applescript
|
"Ice cream" is "carrot"
|
operators.applescript
|
"Ice cream" is equal to "carrot"
|
operators.applescript
|
"Me" is not "You"
|
operators.applescript
|
"Me" is not equal to "You"
|
operators.applescript
|
"ASCII" = "ascii"
|
operators.applescript
|
property defaultFolders : {"/Users/takashi", "/Users/takashi/Desktop", "/Users/takashi/Documents", "/Users/takashi/Downloads", "/Users/takashi/Projects"}
|
open_home_folders.applescript
|
set finderWindow to make new Finder window at the end of Finder windows
|
open_home_folders.applescript
|
repeat with i from 1 to count of defaultFolders
|
open_home_folders.applescript
|
set target of finderWindow to POSIX file (item i of defaultFolders)
|
open_home_folders.applescript
|
if i = (count of defaultFolders) then
|
open_home_folders.applescript
|
on playSong(songName)
|
playSong.scpt
|
set theTrack to first track of library playlist 1 whose name is songName
|
playSong.scpt
|
play theTrack
|
playSong.scpt
|
set theSong to item 1 of argv
|
playSong.scpt
|
playSong(theSong)
|
playSong.scpt
|
fmGUI_ManageSecurity_AccessLayout_GetInfo({})
|
fmGUI_ManageSecurity_AccessLayout_GetInfo.applescript
|
set layoutAccessList to name of static text 3 of every row of table 1 of scroll area 1 of window 1
|
fmGUI_ManageSecurity_AccessLayout_GetInfo.applescript
|
set recordAccessList to name of static text 4 of every row of table 1 of scroll area 1 of window 1
|
fmGUI_ManageSecurity_AccessLayout_GetInfo.applescript
|
set layoutPrivList to {}
|
fmGUI_ManageSecurity_AccessLayout_GetInfo.applescript
|
copy {layoutName:item i of nameList, layoutAccess:item i of layoutAccessList, dataAccess:item i of recordAccessList} to end of layoutPrivList
|
fmGUI_ManageSecurity_AccessLayout_GetInfo.applescript
|
set layoutAccess to {allowCreate:allowCreate, layoutPrivList:layoutPrivList}
|
fmGUI_ManageSecurity_AccessLayout_GetInfo.applescript
|
return layoutAccess
|
fmGUI_ManageSecurity_AccessLayout_GetInfo.applescript
|
error "unable to fmGUI_ManageSecurity_AccessLayout_GetInfo - " & errMsg number errNum
|
fmGUI_ManageSecurity_AccessLayout_GetInfo.applescript
|
set old to the clipboard as record
|
highlight-ruby.applescript
|
do shell script "export LC_CTYPE=UTF-8; pbpaste | /usr/local/bin/pygmentize -l ruby -f rtf -O style=default | pbcopy -Prefer rtf"
|
highlight-ruby.applescript
|
set the clipboard to old
|
highlight-ruby.applescript
|
set timeZone to (abbreviation of (current application's NSTimeZone's localTimeZone())) as text
|
Mail2txt.applescript
|
set download html attachments to true -- load remote content as well
|
Mail2txt.applescript
|
tell (item 1 of (get selection)) -- here we tell to 1st selected message
|
Mail2txt.applescript
|
set {theSubject, fromHider} to {subject, "From: " & sender}
|
Mail2txt.applescript
|
tell (get date sent) -- build here "Date: ....." text line
|
Mail2txt.applescript
|
set dateSentHider to "Date: " & date string & " - " & time string & " " & timeZone
|
Mail2txt.applescript
|
set {toHider, messageContent} to {"To: " & address of to recipient 1, content}
|
Mail2txt.applescript
|
set allText to fromHider & linefeed & "Subject: " & theSubject & linefeed & dateSentHider & ¬
|
Mail2txt.applescript
|
linefeed & toHider & linefeed & linefeed & messageContent
|
Mail2txt.applescript
|
set {ATID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ":"}
|
Mail2txt.applescript
|
set {itemList, AppleScript's text item delimiters} to {text items of theSubject, "_"}
|
Mail2txt.applescript
|
set {theSubject, AppleScript's text item delimiters} to {itemList as text, ATID}
|
Mail2txt.applescript
|
set theFile to POSIX path of (path to desktop folder) & theSubject & ".txt"
|
Mail2txt.applescript
|
set the clipboard to allText
|
Mail2txt.applescript
|
(current application's NSString's stringWithString:allText)'s writeToFile:theFile atomically:true ¬
|
Mail2txt.applescript
|
encoding:(current application's NSUTF8StringEncoding) |error|:(missing value)
|
Mail2txt.applescript
|
global std, fileUtil, textUtil, syseve, retry, sessionPlist, configUser
|
Create Automator App.applescript
|
global seLib, automator
|
Create Automator App.applescript
|
global IS_SPOT, SCRIPT_NAME
|
Create Automator App.applescript
|
logger's debugf("thisAppName: {}", thisAppName)
|
Create Automator App.applescript
|
if IS_SPOT and std's appExists(thisAppName) is true then
|
Create Automator App.applescript
|
set testScriptName to "Run Script Editor 2.applescript"
|
Create Automator App.applescript
|
set seTab to seLib's findTabWithName(testScriptName)
|
Create Automator App.applescript
|
logger's infof("The test script {} was not found", testScriptName)
|
Create Automator App.applescript
|
logger's info("Base Script Name: " & baseScriptName)
|
Create Automator App.applescript
|
set projectPaths to configUser's getValue("AppleScript Projects Path")
|
Create Automator App.applescript
|
if projectPaths is missing value then
|
Create Automator App.applescript
|
error "'AppleScript Projects Path' was not found in config-user.plist"
|
Create Automator App.applescript
|
repeat with nextPath in projectPaths
|
Create Automator App.applescript
|
enterScriptName(baseScriptName)
|
Create Automator App.applescript
|
delay 0.2 -- fails with 0.1
|
Create Automator App.applescript
|
set sourceFile to choose file
|
getFilePathWithoutExtension.applescript
|
return "http://i.imgur.com/9VV5LB3.gif"
|
sealion.scpt
|
tell application "System Events" to key code 144 using command down
|
1 Target display mode.scpt
|
my BlueToothTogglePreYosemite()
|
1 Target display mode.scpt
|
on BlueToothTogglePreYosemite()
|
1 Target display mode.scpt
|
reveal pane id "com.apple.preferences.Bluetooth"
|
1 Target display mode.scpt
|
set the current pane to pane id "com.apple.preferences.Bluetooth"
|
1 Target display mode.scpt
|
click checkbox "On" of window "Bluetooth"
|
1 Target display mode.scpt
|
end BlueToothTogglePreYosemite
|
1 Target display mode.scpt
|
on BlueToothToggleYosemite()
|
1 Target display mode.scpt
|
click button "Turn Bluetooth Off" of sheet 1 of window "Bluetooth" of application process "System Preferences" of application "System Events"
|
1 Target display mode.scpt
|
end BlueToothToggleYosemite
|
1 Target display mode.scpt
|
tell group 3 of toolbar 1
|
autofocus-preview.applescript
|
set input to text field 1
|
autofocus-preview.applescript
|
set focused of input to true
|
autofocus-preview.applescript
|
set theWindowHeight to 400
|
Resize Screencast Window Wide.applescript
|
property calendarName : "Test_AS" -- Attention à ne pas mette le nom d'un calendrier qui existe (voir fonction creerCalendrier)
|
Calendrier_Anniversaire.applescript
|
property calendarColor : {65535, 65535, 0} -- jaune {Rouge, Vert, Bleu}
|
Calendrier_Anniversaire.applescript
|
property calendarDescription : "Anniversaires de mes contacts"
|
Calendrier_Anniversaire.applescript
|
property girlFriendName : "Marine Coite"
|
Calendrier_Anniversaire.applescript
|
property soundAlarmTime : 730 -- rappel sonore le jour même à 12h10 (730 minutes = 12h10)
|
Calendrier_Anniversaire.applescript
|
property soundAlarmSound : "Basso" -- musique du rappel sonore
|
Calendrier_Anniversaire.applescript
|
property mailAlarmTime1 : 7 -- mail envoyé à 7 heures
|
Calendrier_Anniversaire.applescript
|
property mailAlarmDay1 : 1 -- mail envoyé 1 jour avant
|
Calendrier_Anniversaire.applescript
|
property mailAlarmTime2 : 7 -- mail envoyé à 7 heures
|
Calendrier_Anniversaire.applescript
|
property mailAlarmDay2 : 15 -- mail envoyé 15 jours avant
|
Calendrier_Anniversaire.applescript
|
property mailAlarmTime3 : 7 -- mail envoyé à 7 heures
|
Calendrier_Anniversaire.applescript
|
property mailAlarmDay3 : 7 -- mail envoyé 7 jours avant
|
Calendrier_Anniversaire.applescript
|
set currentYear to year of (current date)
|
Calendrier_Anniversaire.applescript
|
set listeContactAnniversaire to my lireContactAnniversaire()
|
Calendrier_Anniversaire.applescript
|
my creerCalendrier(calendarName, calendarDescription, calendarColor)
|
Calendrier_Anniversaire.applescript
|
repeat with i in listeContactAnniversaire
|
Calendrier_Anniversaire.applescript
|
set contactBirthday to item 1 of i
|
Calendrier_Anniversaire.applescript
|
set contactName to item 2 of i
|
Calendrier_Anniversaire.applescript
|
set contactAge to currentYear - (year of contactBirthday)
|
Calendrier_Anniversaire.applescript
|
set eventDate to contactBirthday
|
Calendrier_Anniversaire.applescript
|
tell eventDate to set year to currentYear
|
Calendrier_Anniversaire.applescript
|
if eventDate is less than (current date) then
|
Calendrier_Anniversaire.applescript
|
tell eventDate to set year to currentYear + 1
|
Calendrier_Anniversaire.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.