r/applescript • u/anotherreddituser34 • Mar 11 '23
Trig?!
hi all. I dont know why I cant find the answer to this on the internet, but what is the syntax for basic trig in AppleScript? cos(angle) throws up an error.
2
Upvotes
1
u/BigDRM Mar 11 '23
This old, broken page might help: http://macosxautomation.com/applescript/sbrt/pgs/sbrt.02.htm
1
u/KaiHawaiiZwei Mar 12 '23
yeah, it is annoying this is not included in applescript; i need it all the time too. i have seen many resolving this issue via the shell, but that is just not what we want.
1
u/copperdomebodha Mar 13 '23
Here are standard AppleScript implementations of basic math functions.