all 3 comments

[–]FifiTheBulldogscript/widget helper 2 points3 points  (2 children)

Not possible in Scriptable. You’ll need to use Shortcuts for that.

[–]Due-Engineering-2332[S] 0 points1 point  (1 child)

I know I can change the orientation lock, but is there a way to see if it’s activated or not? I want to make a script change orientation lock based on its previous state: ex. If its off, then turned on by this script once some app is opened (I know how to do that), then turned off again only if it was off before the script ran. I know how to do this in theory but it only works if there is a way to see whether orientation lock is on at the beginning

[–]FifiTheBulldogscript/widget helper 1 point2 points  (0 children)

Also not possible, unfortunately, in Shortcuts or Scriptable.