Closed nicolinuxfr closed 3 years ago
In your settings, set applescript.alwaysShowOutput
to true
It is already set as such. :-)
I thought the setting was only to always display output even if there is no error or nothing to display. I don't think it changes the behaviour of the output itself.
What happens if you run the following piece of code?
do shell script "echo 'Hello host'"
tell current application
activate
do shell script "echo 'Hello current application'"
end tell
tell application "Safari"
activate
end tell
tell current application
do shell script "echo 'Hello Safari'"
end tell
No matter where I run this – AppleScript Editor or Visual Studio Code – it always output "Hello Safari". I'm using macOS 10.13.3 (17G65) and Visual Studio Code 1.25.1.
Sorry, I forgot to answer.
In order to see full logs in the Script Editor.app, you need to check this icon before executing the script. Then, this is what you will have :
I don't know if it's an exclusive feature of this app or if you can have the same in VSCode.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 14 days.
This issue was closed because it has been stalled for 14 days with no activity.
I'm not sure it's technically possible, but if it is, it would be really nice to have a full log when running a script.
What I mean by full log, is what the Script Editor.app made by Apple can display when you run a script. For instance, with this script, here's what the Apple app gives me when I run :
In contrast, here's what Visual Studio Code gives me, the only log in the script :
The full log is far more useful to see what happens and debugs the script. In many case, the log commands are not even necessary, while I have to use it constantly with VSCode.
So, again, if possible, would be great.
Anyway, thanks for your work on this extension ! 👍