raycast / script-commands

Script Commands let you tailor Raycast to your needs. Think of them as little productivity boosts throughout your day.

Home Page:https://raycast.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I'm not sure If this is just me not knowing how scripts work or if it's a bug

kyellareddy opened this issue · comments

Whenever I download a .applescript script from here, it runs fine from Raycast. But if I open it in Script Editor and edit something like changing the icon or even if I just add a space and delete the space, Raycast says
Error: Process tried to run, but failed

This only happens with .applescript files, not .sh files.

Again, I'm not sure if this is just me doing something wrong or if its actually a bug.

I don't exactly if might be this, but check if the file encoding keeps the same, maybe Script Editor is changing it. Perhaps using VS Code would help you on that. If you need extra help, please let us know.

Do you consider yourself good at writing Applescript?
If so, I have a script I'm trying to make but it's not returning anything and I'm not sure why.

Unfortunately not, AppleScripts aren't that easy thing to learn and hold the knowledge in longer enough to remember few months later. What I would recommend you is to download again the Script Command you wanna work on, open it on Sublime Text or VS Code, but not on Apple Script Editor, make your changes and try to run again from inside of Raycast, this might be the way you will confirm if Apple Script Editor is making changes on your file encoding in a way Raycast isn't being able to run it again. The other thing you can do is share here with us which Script Command you are trying to edit, then we can try to help you with that.

Also, you can come to our community on Slack and ask for help in there, there are a lot of good folks ready to help you out, without you having to wait for an answer here from just one or another person.

https://raycast.com/community

@kyellareddy I'm going to close this issue. In case you want to add something, please, just comment in it.