osx - How to tell OS X not to "wait" during a bash script? -


i've set script:

 #!/bin/bash /applications/namechanger.app/contents/macos/namechanger "$@" osascript -e "delay 1" -e "tell application \"namechanger\" activate" 

i'm using pass file names namechanager. without second line loads namechanger unfocused. thought should use delay , activate applescript focused.

unfortunately script "waiting" namechanger run , exit before executing applescript bit. how can change that?

alternatively can use open command launch namechanger. should automatically bring namechanger foreground:

#!/bin/bash open /applications/namechanger.app --args "$@" 

Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -