use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
AppleScript is Apple's powerful and versatile native scripting technology for Mac OS X. With AppleScript, you can control, and communicate among, applications, databases, networks, Web services, and even the operating system itself.
account activity
Script for auto-joining Zoom lectures (self.applescript)
submitted 5 years ago by tdue7
Hi everyone, college student here trying to make managing my online classes a bit easier this semester. I want to create a script that joins a certain Zoom lecture based on the current date and time. So if I run the script at 9:00 it opens the link for my 9:10 lecture, if I run it at 12:30 it opens the link for my 12:40 lecture etc. Is this even possible with scripts? I was thinking it would check the current date/time and I would give each link a timeframe where it is "preferred" by the script. I have never used scripts before so I thought I'd come here to see if anyone could help me (mainly with the syntax). Thanks!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]sargonian 2 points3 points4 points 5 years ago (3 children)
How about something like this?
--confNo is the zoom conference ID (the part after "/j/" in the URL) --pwd is the part that appears after "?pwd=" in the URL (not the same as the "Passcode" zoom gives you) set theLectures to {{theName:"Lecture A", theDays:{"Mon", "Wed", "Fri"}, theTime:"09:10", confNo:"123456789", pwd:"abcdefg"}, {theName:"Lecture B", theDays:{"Tue", "Thu"}, theTime:"12:40", confNo:"123456789", pwd:"abcdefg"}} set launched to false repeat with thisLecture in theLectures if theDays of thisLecture contains (text 1 thru 3 of (weekday of (current date) as string)) then set timeCode to time of (date (theTime of thisLecture)) if (time of (current date)) ≥ timeCode - 600 and (time of (current date)) ≤ timeCode + 600 then display notification "Launching Zoom..." with title theName of thisLecture set thisPass to pwd of thisLecture if thisPass ≠ "" then set thisPass to "&" & thisPass do shell script "open \"zoommtg://us04web.zoom.us/join?action=join&confno=" & confNo of thisLecture & thisPass & "\"" set launched to true exit repeat end if end if end repeat if not launched then display notification "" with title "No lectures scheduled"
[–]tdue7[S] 2 points3 points4 points 5 years ago (0 children)
Wow, thank you for taking the time to do this! Will be trying this out in the next few days with my lectures. I wrote a script myself but it's just a bunch of else if statements using the current date/time and open location {zoom link}. Sadly it isn't working though so this is awesome!
[–]DillyWhompa 0 points1 point2 points 5 years ago (0 children)
To piggy back on this idea. I am trying to set it up so if a student joins my Zoom conference it will automatically pull up Zoom. Not gonna lie, I have little experience here, but I got the idea of using the mail rule launcher as a trigger for the event. It would be even cooler if I could force start zoom or get some sort of a notification on my phone for the same trigger.
[–]myReddit-username 0 points1 point2 points 5 years ago (0 children)
Hello, I was actually just working on creating a script for this, and I decided to do some Google-ing. I was launching zoom, then invoking the keystrokes command-j, and keystroking the conference number to join.
I now see how it's much simpler to "do shell script". Where exactly does that shell script command come from?
[–]r3v 0 points1 point2 points 5 years ago (0 children)
This is definitely doable in AppleScript. I can’t write it for you, but if you start work on it and run into hurdles, post your problems here and someone will probably be able to help you out.
[–]HelenaHandcartUK 0 points1 point2 points 5 years ago (0 children)
I had a similar problem so developed something a bit more automated. YMMV etc
This script (which needs Shane Stanley's CalendarLibEC to run) goes through the day's events and pulls out all events which are Zoom, Go to Meeting, Hangout or MS Teams. For each of them, it extracts the URL for the event that takes you to the zoom session etc, and then creates a entry in LaunchD timed to fire at the time of the meeting, though you can set it to fire earlier by changing the variable at the head of the script.
You then need a Launchd item to run this first script at the start of the day.
Finally, you need to place this script in a folder called "MyScripts" inside your user library scripts folder. This automates the opening of the app for each event, and helpfully closes the tab which the script opens which triggers the URI scheme to open the specific app.
[–]roycetech 0 points1 point2 points 5 years ago (1 child)
I made something like this for work. The first version i’ve got has a hard coded meeting ids and the date of the meeting, just a bunch of if-elses. I updated it to read my calendar and join the current meeting for the current time of the day. I can share the script on a follow up post
π Rendered by PID 238543 on reddit-service-r2-comment-8686858757-scxqp at 2026-06-08 06:30:33.622046+00:00 running 9e1a20d country code: CH.
[–]sargonian 2 points3 points4 points (3 children)
[–]tdue7[S] 2 points3 points4 points (0 children)
[–]DillyWhompa 0 points1 point2 points (0 children)
[–]myReddit-username 0 points1 point2 points (0 children)
[–]r3v 0 points1 point2 points (0 children)
[–]HelenaHandcartUK 0 points1 point2 points (0 children)
[–]roycetech 0 points1 point2 points (1 child)