Hi all,
What I want to accomplish is having a Mac app that I can link with an url in my browser.
What I have now is an app with in it a shell script.
The only thing it does at the moment is write the arguments to a file (this is to test if the url is passed correctly).
I could succesfuly assign the app to open this type of url.
However when I just print out the arguments I get this:
What I would expect (what is the case in Linux) is: thedomain.com (if url ssh://thedomain.com is used)
This is for managing alot of servers which are administrated in a web interface.
If I do :
it works as expected and the argument is thedomain.com.
Can someone help me with this?
Maybe it is possible to write some sort of wrapper? But I know only a little about c/c++ programming and from what I have read Cocoa and Carbon do not allow arguments to be passed directly.
I would think this is some sort of pointer so maybe it is readable using c/c++.
I tried tools like Platypus but these do not pass parameters that are passed (only when files gets dropped).
What I want to accomplish is having a Mac app that I can link with an url in my browser.
What I have now is an app with in it a shell script.
The only thing it does at the moment is write the arguments to a file (this is to test if the url is passed correctly).
I could succesfuly assign the app to open this type of url.
However when I just print out the arguments I get this:
Code:
-psn_0_9767248
What I would expect (what is the case in Linux) is: thedomain.com (if url ssh://thedomain.com is used)
This is for managing alot of servers which are administrated in a web interface.
If I do :
Code:
/Applications/theapp.app/MacOS/Content/thescript thedomain.com
Can someone help me with this?
Maybe it is possible to write some sort of wrapper? But I know only a little about c/c++ programming and from what I have read Cocoa and Carbon do not allow arguments to be passed directly.
I would think this is some sort of pointer so maybe it is readable using c/c++.
I tried tools like Platypus but these do not pass parameters that are passed (only when files gets dropped).