John Morse wrote:
> Yes, I know that, I have numerous user tools set up.
> I was just hoping it could be done easily through PowerPro.
> This would also allow it to be used in various editing environments.
First, you would need to capture EditPlus's whole caption into a variable.
Then remove the unwanted bits using one of PowerPro's string
manipulation functions. Then use the result as the parameter for a
command to run dreamweaver.
How you do the capturing depends: if EditPlus is always focussed
at the time you do this, then simply using the function "caption"
will do. Otherwise you could use: window("caption","=editplus").
[I assumed the exe filename is editplus.exe]
Then use the "remove()" function to remove the "EditPlus"
and any other unwanted characters from that string.
string2 = remove(string1,number)
Removes n characters from string1. remove ("abcd", 2) is "cd".
Use a negative number to remove characters from the end of a string.
remove( "abcd", -3 ) is "a"
So your script would be:
var1=caption
; alternative:
; var1=window("caption","=editplus")
var2=remove(var1,10)
; adjust my guess "10" so it removes all the unwanted characters.
; if the unwanted stuff follows the wanted filepath
; rather than coming before it
; then you would use a negative number:
; var2=remove(var1,-10)
do("c:\pathto\dreamweaver",var2)
You could reduce the whole script to one line:
do("c:\pathto\dreamweaver",remove(window("caption","=editplus",-10))
I can't test the above here because I don't have those apps.
It's possible that the command to Dreamweaver needs some command
line switch before the argument for the document's file name.
If so, you would insert the switch like in this example:
do("c:\pathto\dreamweaver","/edit " ++ remove(window("caption","=editplus",-10))
In that, "/edit" is only my guess at what Dreamweaver requires
in its command line, IF it requires anything there.
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/