Jump to content

Apple script - Unable to get environment var?


Recommended Posts

I have workflow environments set like this:

119199530_Screenshot2020-04-18at17_48_17.jpg.280d8342d6e44c54f5f622d54fd9b7a7.jpg

 

I'm trying to retrieve the variable from "Run NSAppleScript" script like this:

685531540_Screenshot2020-04-18at17_52_53.jpg.28a4c3b3e2541842a165efa2a6c353f1.jpg

 

And variable test is always empty?! What am I doing wrong?

 

I set variable through the apple script like this:

2025762501_Screenshot2020-04-18at17_55_19.jpg.3742d4f3a85e38b35af1f070c720cfe3.jpg

 

Btw... log doesn't output anything in the console form me? That's why I use "say" to debug 😔

 

I have Alfred v3.8.6

OsX Catalina 10.15.3

 

I have read all docs I could find including https://www.deanishe.net/post/2018/10/workflow/environment-variables-in-alfred/

 

Thanks!

Edited by chavlji
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...