text stringlengths 0 15.7k | source stringlengths 6 112 |
|---|---|
set companyName to (do JavaScript "document.getElementsByClassName('title company-name')[0].textContent") | Web Scraping - Tealit.com.applescript |
say companyName | Web Scraping - Tealit.com.applescript |
set email to do JavaScript "document.getElementsByClassName('fa fa-envelope')[0].nextSibling.nextSibling.textContent" | Web Scraping - Tealit.com.applescript |
set phoneNumber to do JavaScript "document.getElementsByClassName('fa fa-phone')[0].nextSibling.textContent" | Web Scraping - Tealit.com.applescript |
set tealitURL to URL | Web Scraping - Tealit.com.applescript |
set numberOfDataItems to do JavaScript "document.getElementsByClassName('inline-title').length" | Web Scraping - Tealit.com.applescript |
repeat with j from 0 to numberOfDataItems - 1 | Web Scraping - Tealit.com.applescript |
set dataHolder to do JavaScript "document.getElementsByClassName('inline-title')[" & j & "].textContent" | Web Scraping - Tealit.com.applescript |
if dataHolder is "When Job is Available" then | Web Scraping - Tealit.com.applescript |
set jobAvailableWhen to do JavaScript "document.getElementsByClassName('inline-title')[" & j & "].nextElementSibling.textContent" | Web Scraping - Tealit.com.applescript |
else if dataHolder is "Degree Required" then | Web Scraping - Tealit.com.applescript |
set educationRequired to do JavaScript "document.getElementsByClassName('inline-title')[" & j & "].nextElementSibling.textContent" | Web Scraping - Tealit.com.applescript |
else if dataHolder is "Age Level Of Class" then | Web Scraping - Tealit.com.applescript |
set studentAge to do JavaScript "document.getElementsByClassName('inline-title')[" & j & "].nextElementSibling.textContent" | Web Scraping - Tealit.com.applescript |
else if dataHolder is "Average Number of Students in Class" then | Web Scraping - Tealit.com.applescript |
set averageNumberOfStudentsPerClass to do JavaScript "document.getElementsByClassName('inline-title')[" & j & "].nextElementSibling.textContent" | Web Scraping - Tealit.com.applescript |
else if dataHolder is "Contact Person" then | Web Scraping - Tealit.com.applescript |
set contactPerson to do JavaScript "document.getElementsByClassName('inline-title')[" & j & "].nextElementSibling.textContent" | Web Scraping - Tealit.com.applescript |
else if dataHolder is "Location" then | Web Scraping - Tealit.com.applescript |
set location to do JavaScript "document.getElementsByClassName('inline-title')[" & j & "].nextElementSibling.textContent" | Web Scraping - Tealit.com.applescript |
else if dataHolder is "District" then | Web Scraping - Tealit.com.applescript |
set district to do JavaScript "document.getElementsByClassName('inline-title')[" & j & "].nextElementSibling.textContent" | Web Scraping - Tealit.com.applescript |
else if dataHolder is "Street Address" then | Web Scraping - Tealit.com.applescript |
set streetAddress to do JavaScript "document.getElementsByClassName('inline-title')[" & j & "].nextElementSibling.textContent" | Web Scraping - Tealit.com.applescript |
else if dataHolder is "Web Site URL" then | Web Scraping - Tealit.com.applescript |
set schoolURL to do JavaScript "document.getElementsByClassName('inline-title')[" & j & "].nextElementSibling.nextElementSibling.nextElementSibling.textContent" | Web Scraping - Tealit.com.applescript |
do JavaScript "history.back()" | Web Scraping - Tealit.com.applescript |
tell application "Numbers" # paste data into Numbers spreadsheet | Web Scraping - Tealit.com.applescript |
set rowNumber to ((pageNumber - 1) * 30) + (i + 2) | Web Scraping - Tealit.com.applescript |
if not (exists row rowNumber) then | Web Scraping - Tealit.com.applescript |
tell row rowNumber | Web Scraping - Tealit.com.applescript |
set value of cell 1 to listingNumber | Web Scraping - Tealit.com.applescript |
set value of cell 2 to companyName | Web Scraping - Tealit.com.applescript |
set value of cell 3 to email | Web Scraping - Tealit.com.applescript |
set value of cell 4 to phoneNumber | Web Scraping - Tealit.com.applescript |
set value of cell 5 to jobAvailableWhen | Web Scraping - Tealit.com.applescript |
set value of cell 6 to educationRequired | Web Scraping - Tealit.com.applescript |
set value of cell 7 to studentAge | Web Scraping - Tealit.com.applescript |
set value of cell 8 to averageNumberOfStudentsPerClass | Web Scraping - Tealit.com.applescript |
set value of cell 9 to contactPerson | Web Scraping - Tealit.com.applescript |
set value of cell 10 to location | Web Scraping - Tealit.com.applescript |
set value of cell 11 to district | Web Scraping - Tealit.com.applescript |
set value of cell 12 to streetAddress | Web Scraping - Tealit.com.applescript |
set value of cell 13 to schoolURL | Web Scraping - Tealit.com.applescript |
set value of cell 14 to tealitURL | Web Scraping - Tealit.com.applescript |
repeat with j from 0 to 7 #Click on the next page | Web Scraping - Tealit.com.applescript |
if (do JavaScript "document.getElementsByClassName('page-link')[" & j & "].textContent") is "›" then | Web Scraping - Tealit.com.applescript |
do JavaScript "document.getElementsByClassName('page-link')[" & j & "].click()" | Web Scraping - Tealit.com.applescript |
say "clicked to go to the next page" | Web Scraping - Tealit.com.applescript |
set clickCounter to clickCounter + 1 | Web Scraping - Tealit.com.applescript |
set yesname to (display dialog "Choose the name for your window shot (with no spaces)" default answer "") | screenshot_dialog.applescript |
on removeExtraAppsFromDock(prefs) | removeExtraAppsFromDock.applescript |
set defaultPrefs to {listOfAllowedAppNames:{"Finder", "FileMaker Pro Advanced", "FileMaker Pro Advanced", "Script Editor", "Terminal", "System Preferences", "Downloads", "Documents", "Trash"}} | removeExtraAppsFromDock.applescript |
set prefst to prefs & defaultPrefs | removeExtraAppsFromDock.applescript |
set listOfAllowedAppNames to listOfAllowedAppNames of prefs | removeExtraAppsFromDock.applescript |
set removeButton to "Remove from Dock" | removeExtraAppsFromDock.applescript |
set listOfDockApps to every UI element of list 1 | removeExtraAppsFromDock.applescript |
repeat with oneDockItem in listOfDockApps | removeExtraAppsFromDock.applescript |
if description of oneDockItem is equal to "separator dock item" then exit repeat | removeExtraAppsFromDock.applescript |
set oneName to name of oneDockItem | removeExtraAppsFromDock.applescript |
if listOfAllowedAppNames contains oneName then | removeExtraAppsFromDock.applescript |
tell UI element oneName of list 1 | removeExtraAppsFromDock.applescript |
click menu item "Options" of menu 1 | removeExtraAppsFromDock.applescript |
set optionsMenuObj to menu 1 of menu item "Options" of menu 1 | removeExtraAppsFromDock.applescript |
set menuOptions to name of every menu item of optionsMenuObj | removeExtraAppsFromDock.applescript |
if menuOptions contains removeButton then | removeExtraAppsFromDock.applescript |
click menu item removeButton of optionsMenuObj | removeExtraAppsFromDock.applescript |
set keepMenuItem to menu item "Keep in Dock" of optionsMenuObj | removeExtraAppsFromDock.applescript |
if enabled of keepMenuItem is true then click keepMenuItem | removeExtraAppsFromDock.applescript |
end if -- app is allowed | removeExtraAppsFromDock.applescript |
end repeat -- of apps in dock | removeExtraAppsFromDock.applescript |
end removeExtraAppsFromDock | removeExtraAppsFromDock.applescript |
set theRating to 40 -- 2 stars | 2-star.scpt |
set theDial to start up dialog | convertppt_pdf.scpt |
set start up dialog to false | convertppt_pdf.scpt |
close active presentation saving no | convertppt_pdf.scpt |
set start up dialog to theDial | convertppt_pdf.scpt |
return t & ".pdf" | convertppt_pdf.scpt |
set scriptdirectory to (parentDir & "Bash/") | ToggleHidden.applescript |
do shell script ("bash " & scriptdirectory & "ToggleHidden.sh") | ToggleHidden.applescript |
system attribute "TMPDIR" | system attribute "TMPDIR".applescript |
use AppleScript version "2.3" | MySQL.applescript |
on _mySQLCLIWrapper(hostname, username, passwordv, queryv) | MySQL.applescript |
set mysqlExecutable to "mysql" | MySQL.applescript |
set mysqlAttrExecutable to system attribute "MYSQL" | MySQL.applescript |
set workbenchPresent to false | MySQL.applescript |
set serverPresent to false | MySQL.applescript |
set workbenchPresent to exists file "/Applications/MySQLWorkbench.app/Contents/MacOS/mysql" | MySQL.applescript |
set serverPresent to exists file "/usr/local/mysql/bin/mysql" | MySQL.applescript |
if (length of mysqlAttrExecutable) is greater than 0 then | MySQL.applescript |
set mysqlExecutable to mysqlAttrExecutable | MySQL.applescript |
else if serverPresent then | MySQL.applescript |
set mysqlExecutable to "/usr/local/mysql/bin/mysql" | MySQL.applescript |
else if workbenchPresent then | MySQL.applescript |
set mysqlExecutable to "/Applications/MySQLWorkbench.app/Contents/MacOS/mysql" | MySQL.applescript |
set hostname to quoted form of hostname | MySQL.applescript |
set username to quoted form of username | MySQL.applescript |
set queryv to quoted form of queryv | MySQL.applescript |
set cmd to (quoted form of mysqlExecutable) & " -h" & hostname & " -u" & username & " -e" & queryv | MySQL.applescript |
if (length of passwordv) is greater than 0 then | MySQL.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.