text
stringlengths 0
15.7k
| source
stringlengths 6
112
|
---|---|
if station_tv_state() then | StationTV%20Helper.scpt |
my ng_services(true) | StationTV%20Helper.scpt |
my back_ng_apps() | StationTV%20Helper.scpt |
on reopen | StationTV%20Helper.scpt |
end reopen | StationTV%20Helper.scpt |
on save_password() | StationTV%20Helper.scpt |
display dialog "管理者パスワードを入力してください。" default answer "" with hidden answer | StationTV%20Helper.scpt |
set pw to result's text returned | StationTV%20Helper.scpt |
end save_password | StationTV%20Helper.scpt |
on ng_services(bool) | StationTV%20Helper.scpt |
if screen_sharing then | StationTV%20Helper.scpt |
my service_on_off(my look_up(ScreenSharing_launchd, my os_version()), bool) | StationTV%20Helper.scpt |
if bool is false then set service_list to service_list & "画面共有" | StationTV%20Helper.scpt |
if remote_managemanet then | StationTV%20Helper.scpt |
my service_on_off(my look_up(RemoteManagement_launchd, my os_version()), bool) | StationTV%20Helper.scpt |
if bool is false then set service_list to service_list & "リモートマネージメント" | StationTV%20Helper.scpt |
my message(my look_up(check_text, bool), my join(service_list, "\n")) | StationTV%20Helper.scpt |
end ng_services | StationTV%20Helper.scpt |
on quit_ng_apps() | StationTV%20Helper.scpt |
repeat with process_name in every_process() | StationTV%20Helper.scpt |
if process_name is in ng_apps() then | StationTV%20Helper.scpt |
set process_list to process_list & process_name | StationTV%20Helper.scpt |
quit application process_name | StationTV%20Helper.scpt |
my message("終了", my join(process_list, "\n")) | StationTV%20Helper.scpt |
end quit_ng_apps | StationTV%20Helper.scpt |
on back_ng_apps() | StationTV%20Helper.scpt |
repeat with process_name in process_list | StationTV%20Helper.scpt |
launch application process_name | StationTV%20Helper.scpt |
my message("起動", my join(process_list, "\n")) | StationTV%20Helper.scpt |
end back_ng_apps | StationTV%20Helper.scpt |
on ng_apps() | StationTV%20Helper.scpt |
"QuickTime Player\ngyazo\nScreenBoard\nFlickScreen\nLittleSnapper\nDikk!\nScreenFlowHelper\nScreenFlow\nThe Screen Crawlers\nRulers\nEvernoteHelper\nEvernote\nScrnShots Desktop\nJing\nSimpleCap\nTimed Screenshot\nSnapz Pro X\nSnapNDrag\nSnapClip\nShowTime\nScribbleScreen\nScreenium\nScreenCaptureGUI 2\nScreen Mimic\nRemoteCapture\nPNGoo\nPDFoo\nMultiSnap\nLilypad\nKinoDesk\niShowU\nInstantShot!\nImageFlow\nGrabberRaster\nGrab\nFlySketch\nfgrab\nDesktopToMovie\nCopernicus\nClick\nanno2\nScreenshot Plus.wdgt\nCapture.wdgt\ndesktoptransporterd\nDesktop Transporter\nTeamViewer\nLogMeInGUI\nLogMeIn\nLMILaunchAgentFi\nLMIGUIAgent\nTiffany\nOSXvnc-server\nAppleVNCServer\n" | StationTV%20Helper.scpt |
end ng_apps | StationTV%20Helper.scpt |
on os_version() | StationTV%20Helper.scpt |
do shell script "sw_vers -productVersion|cut -c 1-4" | StationTV%20Helper.scpt |
end os_version | StationTV%20Helper.scpt |
on service_on_off(launchd_path, bool) | StationTV%20Helper.scpt |
my look_up(command, bool) & launchd_path | StationTV%20Helper.scpt |
do shell script result password pw with administrator privileges | StationTV%20Helper.scpt |
end service_on_off | StationTV%20Helper.scpt |
on file_exists(unix_path) | StationTV%20Helper.scpt |
exists my POSIX file (unix_path) | StationTV%20Helper.scpt |
on station_tv_state() | StationTV%20Helper.scpt |
"StationTV LE" is in processes's name | StationTV%20Helper.scpt |
end station_tv_state | StationTV%20Helper.scpt |
if msg is not "" then | StationTV%20Helper.scpt |
do shell script "/bin/echo -n " & quoted form of msg & " | /usr/local/bin/growlnotify " & quoted form of title | StationTV%20Helper.scpt |
on join(sourceList, delimiter) | StationTV%20Helper.scpt |
set theText to sourceList as text | StationTV%20Helper.scpt |
on hide() | StationTV%20Helper.scpt |
end hide | StationTV%20Helper.scpt |
on look_up(src_list, a_key) | StationTV%20Helper.scpt |
if a_key = "" then return "" | StationTV%20Helper.scpt |
repeat with sub_list in src_list | StationTV%20Helper.scpt |
if a_key is in sub_list's item 1 then return sub_list's item 2 -- thru -1 | StationTV%20Helper.scpt |
end look_up | StationTV%20Helper.scpt |
set URL of tab 1 of window 1 to "http://192.168.114.226" | nas.applescript |
set URL of tab (count tabs of front window) of front window to "http://192.168.114.226" | nas.applescript |
OSVersionCheck(8) | OSVersionCheck.applescript |
on OSVersionCheck(os_number) | OSVersionCheck.applescript |
system attribute "sys2" | OSVersionCheck.applescript |
if result > os_number - 1 then | OSVersionCheck.applescript |
end OSVersionCheck | OSVersionCheck.applescript |
set loadButton to "Load 22 more" | Web Scraping - vietnamteachingjobs.applescript |
set theString to {} | Web Scraping - vietnamteachingjobs.applescript |
set URLCount to do JavaScript "document.getElementsByClassName('wpjb-column-title').length" | Web Scraping - vietnamteachingjobs.applescript |
repeat with i from 0 to URLCount - 1 | Web Scraping - vietnamteachingjobs.applescript |
set end of theString to do JavaScript "document.getElementsByClassName('wpjb-column-title')[" & i & "].innerHTML" | Web Scraping - vietnamteachingjobs.applescript |
set theString2 to {} | Web Scraping - vietnamteachingjobs.applescript |
repeat with i in theString | Web Scraping - vietnamteachingjobs.applescript |
set end of theString2 to paragraph 2 of i | Web Scraping - vietnamteachingjobs.applescript |
set theString3 to {} | Web Scraping - vietnamteachingjobs.applescript |
repeat with i in theString2 | Web Scraping - vietnamteachingjobs.applescript |
set end of theString3 to decoupe(i, {"\"", "\""}) | Web Scraping - vietnamteachingjobs.applescript |
repeat with i in theString3 | Web Scraping - vietnamteachingjobs.applescript |
set end of theURLs to item 2 of i | Web Scraping - vietnamteachingjobs.applescript |
set value of cell 4 to "Start Date" | Web Scraping - vietnamteachingjobs.applescript |
set value of cell 5 to "Category" | Web Scraping - vietnamteachingjobs.applescript |
set value of cell 6 to "Job Type" | Web Scraping - vietnamteachingjobs.applescript |
set value of cell 7 to "Nationality of Teacher" | Web Scraping - vietnamteachingjobs.applescript |
set value of cell 8 to "Teaching Experience" | Web Scraping - vietnamteachingjobs.applescript |
set value of cell 9 to "Candidate Requirements" | Web Scraping - vietnamteachingjobs.applescript |
set value of cell 10 to "Salary" | Web Scraping - vietnamteachingjobs.applescript |
set value of cell 11 to "URL" | Web Scraping - vietnamteachingjobs.applescript |
set value of cell 12 to "Job Order" | Web Scraping - vietnamteachingjobs.applescript |
repeat with i from 1 to count of theURLs | Web Scraping - vietnamteachingjobs.applescript |
set URL to item i of theURLs | Web Scraping - vietnamteachingjobs.applescript |
set theTitle to do JavaScript "document.getElementsByClassName('entry-title')[0].textContent" | Web Scraping - vietnamteachingjobs.applescript |
set theCompany to do JavaScript "document.getElementsByClassName('wpjb-info-label wpjb-company-name')[0].childNodes[1].firstElementChild.textContent.trim()" | Web Scraping - vietnamteachingjobs.applescript |
repeat with j from 0 to 9 | Web Scraping - vietnamteachingjobs.applescript |
if (do JavaScript "document.getElementsByClassName('wpjb-info-label')[" & j & "].textContent.trim()") contains "Date Posted" then | Web Scraping - vietnamteachingjobs.applescript |
set datePosted 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 "Category" then | Web Scraping - vietnamteachingjobs.applescript |
set category to do JavaScript "document.getElementsByClassName('wpjb-info-label')[" & j & "].nextElementSibling.innerText.trim()" | Web Scraping - vietnamteachingjobs.applescript |
if (do JavaScript "document.getElementsByClassName('wpjb-info-label')[" & j & "].textContent.trim()") contains "Job Type" then | Web Scraping - vietnamteachingjobs.applescript |
set jobType to do JavaScript "document.getElementsByClassName('wpjb-info-label')[" & j & "].nextElementSibling.childNodes[3].firstElementChild.textContent" | Web Scraping - vietnamteachingjobs.applescript |
if (do JavaScript "document.getElementsByClassName('wpjb-info-label')[" & j & "].textContent.trim()") contains "Nationality Of teacher" then | Web Scraping - vietnamteachingjobs.applescript |
set nationalityOfTeacher 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 "Teaching Experience" then | Web Scraping - vietnamteachingjobs.applescript |
set teachingExperience to do JavaScript "document.getElementsByClassName('wpjb-info-label')[" & j & "].nextElementSibling.textContent.trim()" | Web Scraping - vietnamteachingjobs.applescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.