r/applescript • u/heykzenmatthias • Jul 12 '21
run AppleScript without admin rights
I've made a script which asks me every 15 minutes what I'm doing and writes it away to an online database. And everything works perfectly.
Now I'm trying to share my app with my co-workers, who don't have adminrights on their laptop. Is there a way to run an AppleScript without having adminrights?
This is the code:
repeat
//to make the app top layered
activate
//ask what they are doing
set onderwerp to display dialog "What are you working on?" default answer ""
set strOnderwerp to quoted form of text returned of onderwerp
//write away to online database
set link to "REDACTED" & strOnderwerp
set return to (do shell script "curl " & link)
//get response of web
get return
delay 900
end repeatUpdate
I was thinking about this further myself. Can it has to do something about the fact that they downloaded the app (from Teams)? They get this message.

3
Upvotes
View all comments
Show parent comment
1
u/ThaMouf Jul 13 '21
Judging by the pop up window he’s got the app to launch but the OS is blocking it. I could be wrong? Otherwise he’s going to have to use the “do shell script” command to run his stuff at root privileges.
Honestly it depends on the OS I haven’t been able to get root whatsoever with Monterey so far. It’s getting ridiculous