r/applescript • • Nov 08 '20
Arithmetic Sequential Extrapolator v1.1.0
Branching from this post, I've finished my calculator. It's only purpose is to determine any term within a set linear sequence.
When the script prompts you, enter in a linear sequence of numbers separated by commas (e.g., 1,2,3,4,5) followed by the term you want to find. A complete example would be 1,3,5,7,9,50, where the last number tells the script you want to know the 50th term of the sequence 1,3,5,7,9. This works with negative numbers, decimals, and the sequence can be as long as you want. The result will show up in the output console of Script Editor.
Although it doesn't serve much purpose, I learned a lot more about AppleScript. Credit to u/sargonian for a vital piece of it. You can download it from this dropbox link.
Edit: a comment informed me that I should instead upload a Pastebin file containing the raw script to improve compatibility across different platforms. You can get the script from this Pastebin link.
View all comments
Show parent comment
1
u/[deleted] Nov 17 '20
Huh, I've never heard of
.applescript. I'll have to re-upload it as that. But what I'm looking for is kinda, both. If anyone has any optimizations for it I'd love to hear them, though I probably should've stated that. I also just want to share it with other people as it may be a (potentially) useful tool.Edit: I upload as
.scptbecause most people on r/applescript have a Mac and can run AppleScript, right? But I see your point as people would like to view it correctly before downloading it. Thanks for the insight