idleberg / vscode-applescript

Language syntax and snippets for AppleScript
https://marketplace.visualstudio.com/items?itemName=idleberg.applescript
MIT License
72 stars 8 forks source link

How do you stop a script after starting it? 😂 #36

Closed lopugit closed 7 months ago

lopugit commented 7 months ago

Amazing extension wow, a little more documentation about how it works and runs would be amazing?!

And if it's possible to view log outputs??

But yes, do you know how to stop a script besides through activity monitor? 😂

Thank you so much 🙏

idleberg commented 7 months ago

Have you tried the "AppleScript: Terminate Process" command?

And if it's possible to view log outputs?

If it's possible to read them, I don't know how

https://apple.stackexchange.com/questions/140324/where-does-applescript-event-log-go-when-run-under-launchd

lopugit commented 7 months ago

@idleberg

Oh my word how did I miss that 🙄

I'm so sorry, and thank you again for making this extension it's pure bliss 🙏

Let's you get copilot autocomplete and it's BANGIN 💯

lopugit commented 7 months ago

@idleberg yeah this works nicely! Amazing 🙏

This is my first time apple scripting and it's quite incredible 👀

set logFile to (open for access POSIX file "/Users/lopu/things/code/lopugit/countdown/countdown.log" with write permission)

write "Running" & return to logFile starting at eof