text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
if (do JavaScript "document.getElementsByClassName('wpjb-info-label')[" & j & "].textContent.trim()") contains "Candidate Requirements" then
|
Web Scraping - vietnamteachingjobs.applescript
|
set candidateRequirements to do JavaScript "document.getElementsByClassName('wpjb-info-label')[" & j & "].nextElementSibling.textContent.trim()"
|
Web Scraping - vietnamteachingjobs.applescript
|
if (do JavaScript "document.getElementsByClassName('wpjb-info-label')[" & j & "].textContent.trim()") contains "Where is the school" then
|
Web Scraping - vietnamteachingjobs.applescript
|
set location to do JavaScript "document.getElementsByClassName('wpjb-info-label')[" & j & "].nextElementSibling.textContent.trim()"
|
Web Scraping - vietnamteachingjobs.applescript
|
if (do JavaScript "document.getElementsByClassName('wpjb-info-label')[" & j & "].textContent.trim()") contains "Salary:" then
|
Web Scraping - vietnamteachingjobs.applescript
|
set salary to do JavaScript "document.getElementsByClassName('wpjb-info-label')[" & j & "].nextElementSibling.textContent.trim()"
|
Web Scraping - vietnamteachingjobs.applescript
|
set theURL to URL
|
Web Scraping - vietnamteachingjobs.applescript
|
<<<<<<< HEAD
|
Web Scraping - vietnamteachingjobs.applescript
|
=======
|
Web Scraping - vietnamteachingjobs.applescript
|
>>>>>>> dadfbfa32878df6976ab1abaec0bb31a09e916f1
|
Web Scraping - vietnamteachingjobs.applescript
|
set value of cell 1 to theTitle
|
Web Scraping - vietnamteachingjobs.applescript
|
set value of cell 2 to theCompany
|
Web Scraping - vietnamteachingjobs.applescript
|
set value of cell 4 to datePosted
|
Web Scraping - vietnamteachingjobs.applescript
|
set value of cell 5 to category
|
Web Scraping - vietnamteachingjobs.applescript
|
set value of cell 6 to jobType
|
Web Scraping - vietnamteachingjobs.applescript
|
set value of cell 7 to nationalityOfTeacher
|
Web Scraping - vietnamteachingjobs.applescript
|
set value of cell 8 to teachingExperience
|
Web Scraping - vietnamteachingjobs.applescript
|
set value of cell 9 to candidateRequirements
|
Web Scraping - vietnamteachingjobs.applescript
|
set value of cell 10 to salary
|
Web Scraping - vietnamteachingjobs.applescript
|
set value of cell 11 to theURL
|
Web Scraping - vietnamteachingjobs.applescript
|
set value of cell 12 to i
|
Web Scraping - vietnamteachingjobs.applescript
|
on decoupe(t, d)
|
Web Scraping - vietnamteachingjobs.applescript
|
local oTIDs, l
|
Web Scraping - vietnamteachingjobs.applescript
|
set {oTIDs, AppleScript's text item delimiters} to {AppleScript's text item delimiters, d}
|
Web Scraping - vietnamteachingjobs.applescript
|
set l to text items of t
|
Web Scraping - vietnamteachingjobs.applescript
|
set AppleScript's text item delimiters to oTIDs
|
Web Scraping - vietnamteachingjobs.applescript
|
end decoupe
|
Web Scraping - vietnamteachingjobs.applescript
|
set tests to {"English Name", "Progress Test #1", "Progress Test #2", "Progress Test #3", "Participation (out of 10)", "Speaking Exam", "Written Exam", "Final Exam Score"}
|
Numbers to Excel (Score Transfer).applescript
|
set chosenTest to choose from list (tests) with prompt "Please choose the data you are transfering data for"
|
Numbers to Excel (Score Transfer).applescript
|
set chosenTest to item 1 of chosenTest
|
Numbers to Excel (Score Transfer).applescript
|
set scoreData to {}
|
Numbers to Excel (Score Transfer).applescript
|
tell me to say "what is the source file?"
|
Numbers to Excel (Score Transfer).applescript
|
set sourceFile to choose from list openDocuments with prompt "Select the source file."
|
Numbers to Excel (Score Transfer).applescript
|
set sourceFile to item 1 of sourceFile
|
Numbers to Excel (Score Transfer).applescript
|
tell me to say "Grabbing data"
|
Numbers to Excel (Score Transfer).applescript
|
tell document sourceFile
|
Numbers to Excel (Score Transfer).applescript
|
set excelSheetName to name
|
Numbers to Excel (Score Transfer).applescript
|
if value of cell 1 of column i is "Student ID" then
|
Numbers to Excel (Score Transfer).applescript
|
set studentIDColumn to column i
|
Numbers to Excel (Score Transfer).applescript
|
if value of cell 1 of column i contains chosenTest then
|
Numbers to Excel (Score Transfer).applescript
|
set testScoreColumn to column i
|
Numbers to Excel (Score Transfer).applescript
|
repeat with i from 2 to (count of cells of studentIDColumn)
|
Numbers to Excel (Score Transfer).applescript
|
set end of scoreData to {value of cell i of studentIDColumn, value of cell i of testScoreColumn}
|
Numbers to Excel (Score Transfer).applescript
|
tell me to say "Select the target file."
|
Numbers to Excel (Score Transfer).applescript
|
set targetFile to choose from list openDocuments with prompt "Choose target file."
|
Numbers to Excel (Score Transfer).applescript
|
tell me to say "pasting data"
|
Numbers to Excel (Score Transfer).applescript
|
tell workbook targetFile
|
Numbers to Excel (Score Transfer).applescript
|
set targetSheetNumber to i
|
Numbers to Excel (Score Transfer).applescript
|
set classTitleCell to (find used range what excelSheetName)
|
Numbers to Excel (Score Transfer).applescript
|
tell worksheet targetSheetNumber
|
Numbers to Excel (Score Transfer).applescript
|
set targetColumn to first column index of (find used range what chosenTest)
|
Numbers to Excel (Score Transfer).applescript
|
repeat with i from 1 to count of scoreData
|
Numbers to Excel (Score Transfer).applescript
|
set targetRow to first row index of (find used range what item 1 of item i of scoreData)
|
Numbers to Excel (Score Transfer).applescript
|
set value of cell targetRow of column targetColumn to item 2 of item i of scoreData
|
Numbers to Excel (Score Transfer).applescript
|
say "Finished"
|
Numbers to Excel (Score Transfer).applescript
|
launch application "Evernote"
|
evernote_launch.applescript
|
return run script (POSIX file "/Users/IceHe/Documents/AppleScript/Evernote/evernote_wait_sync.applescript")
|
evernote_launch.applescript
|
set appBundleID to "com.sunny.BetterAndBetter"
|
BAB-Version.applescript
|
set theURL to current application's NSWorkspace's sharedWorkspace()'s URLForApplicationWithBundleIdentifier:appBundleID
|
BAB-Version.applescript
|
set appInfoPlist to ((theURL as text) & "Contents:Info.plist")
|
BAB-Version.applescript
|
set sysVerStr to current application's NSProcessInfo's processInfo()'s operatingSystemVersionString()
|
BAB-Version.applescript
|
set sysVerStr to text item 2 of (sysVerStr as text)
|
BAB-Version.applescript
|
set appInfoPlist to POSIX path of appInfoPlist
|
BAB-Version.applescript
|
set theDict to current application's NSDictionary's dictionaryWithContentsOfFile:appInfoPlist
|
BAB-Version.applescript
|
set verStr to ("BetterAndBetter " & (theDict's valueForKeyPath:"CFBundleShortVersionString") as text) & ¬
|
BAB-Version.applescript
|
" on macOS " & (system version of (get system info))
|
BAB-Version.applescript
|
set the clipboard to verStr
|
BAB-Version.applescript
|
keystroke (key code 124 using {command down})
|
BAB-Version.applescript
|
keystroke (key code 9 using {command down})
|
BAB-Version.applescript
|
display dialog "Try selecting a non-zero number of items." buttons {"Quit"} with icon 0
|
SongNameToMovement.applescript
|
set sizeOfSelection to (count of sel)--how many pieces are we working with
|
SongNameToMovement.applescript
|
set workName to display dialog "Composer: **Work Name**: Number. Movement Name\n\nEdit for Work name and then click OK." default answer (get name of item 1 of sel) --prompt for work name
|
SongNameToMovement.applescript
|
repeat with i from 1 to sizeOfSelection --set the movement numbers
|
SongNameToMovement.applescript
|
set thisTrack to item i of sel
|
SongNameToMovement.applescript
|
set songName to (get name of thisTrack)
|
SongNameToMovement.applescript
|
set originalSongName to songName
|
SongNameToMovement.applescript
|
set shortSongName to songName
|
SongNameToMovement.applescript
|
set newSongName to display dialog "Composer: Work Name: Number. **Movement Name**\n\nEdit for Movement Name and then click OK." default answer songName
|
SongNameToMovement.applescript
|
set movement of thisTrack to text returned of newSongName
|
SongNameToMovement.applescript
|
set work of thisTrack to text returned of workName
|
SongNameToMovement.applescript
|
set movement number of thisTrack to i
|
SongNameToMovement.applescript
|
set movement count of thisTrack to sizeOfSelection
|
SongNameToMovement.applescript
|
set theCopy to create PDF document from theURL name theName in (item 1 of theParents) without pagination
|
As PDF (One Page).applescript
|
property name : "strings"
|
+strings.applescript
|
property id : "chri.sk.applescript.lib:strings"
|
+strings.applescript
|
property lower : "abcdefghijklmnopqrstuvwxyz"
|
+strings.applescript
|
property upper : "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
+strings.applescript
|
property whitespace : [tab, space, linefeed, return]
|
+strings.applescript
|
property tids : my text item delimiters
|
+strings.applescript
|
to __string__(obj)
|
+strings.applescript
|
if class of obj = text then return obj
|
+strings.applescript
|
set s to {_:obj} as text
|
+strings.applescript
|
on error E
|
+strings.applescript
|
my tid:{"Can’t make {_:"}
|
+strings.applescript
|
set s to text items 2 thru -1 of E as text
|
+strings.applescript
|
my tid:{"} into type text."}
|
+strings.applescript
|
set s to text items 1 thru -2 of s as text
|
+strings.applescript
|
my tid:{}
|
+strings.applescript
|
end __string__
|
+strings.applescript
|
to __text__(t as linked list)
|
+strings.applescript
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.