baljeetverma / android-notifier

Automatically exported from code.google.com/p/android-notifier
0 stars 0 forks source link

execute command with paramters #230

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
add the caller id phone number as parameter for URL like 
http://www.mycrm.com/search.aspx?phone=$1 

Please paste the application's log here (it should now be on your
clipboard):

What version of Android are you using?
2.2

Original issue reported on code.google.com by zolim.co...@gmail.com on 12 Oct 2010 at 12:06

GoogleCodeExporter commented 9 years ago
You want the desktop app to open an URL in the default browser of the system? 
Maybe something like this?

open_url http://www.mycrm.com/search.aspx?phone={data}

Original comment by lehph...@gmail.com on 12 Oct 2010 at 3:33

GoogleCodeExporter commented 9 years ago
exactlly

Original comment by zolim.co...@gmail.com on 12 Oct 2010 at 4:41

GoogleCodeExporter commented 9 years ago
If the multiplatform app is consistent with the mac app, then it's setting 
environment variables for the contents of the notification, in which case you 
can have a script which reads that and opens the URL using the data.

Original comment by rdamazio@gmail.com on 12 Oct 2010 at 8:41

GoogleCodeExporter commented 9 years ago
It's replacing variables in the command string instead of setting environment 
variables, I think opening an URL instead of executing a script is worth 
built-in support, but I'm not sure if it's better to have another text field 
for that or support a "reserved" command like "open_url".

Original comment by lehph...@gmail.com on 12 Oct 2010 at 8:50

GoogleCodeExporter commented 9 years ago
usually there is no need for text field because command + parameter is enough 
cause if you can't do what you need with .exe file, you can always use batch 
file to create better or more complex command.
and i'm talking about PC

Original comment by zolim.co...@gmail.com on 14 Oct 2010 at 8:20

GoogleCodeExporter commented 9 years ago
usually there is no need for text field because command + parameter is enough 
cause if you can't do what you need with .exe file, you can always use batch 
file to create better or more complex command.
and i'm talking about PC

Original comment by zolim.co...@gmail.com on 14 Oct 2010 at 8:20

GoogleCodeExporter commented 9 years ago
usually there is no need for text field because command + parameter is enough 
cause if you can't do what you need with .exe file, you can always use batch 
file to create better or more complex command.
and i'm talking about PC

Original comment by zolim.co...@gmail.com on 14 Oct 2010 at 8:20

GoogleCodeExporter commented 9 years ago
This command does what you want, no modifications required in the desktop app: 
start http://www.mycrm.com/search.aspx?phone={data}

If {data} contains spaces, you'll have to write a script to encode it properly 
in URL form.

Original comment by lehph...@gmail.com on 18 Oct 2010 at 5:06

GoogleCodeExporter commented 9 years ago
Taking over lehphyro's issues.

Original comment by rdamazio@gmail.com on 11 Jan 2011 at 4:31