generic.email.30022 at gmail.com
Thu Dec 3 19:46:13 EST 2009
How do you propose I do steps 2-6 if I can not find the file path?
On Dec 2, 2009, at 4:33 PM, Jerry Daniels wrote:
> Why would you need the file path? You've got the text staring you in the face in tText. Look at the two samples that come with the product. They take text from one tab, munge it and then put it into another tab.
> Jerry Daniels
> The latest Rev Editor Video:
> On Dec 2, 2009, at 2:39 PM, Generic Email wrote:
>> I thought I would like to write a tText plugin that would execute the script being edited and put the output into another tab.
>> I didn't see a way to retrieve the full path of the file currently being edited.
>> So the flow would be something like this:
>> 1) Get the full path to the file
>> 2) see if it is executable
>> 3) If yes, then execute the file and put output into new tab and exit
>> 4) if no, parse first line for #!/path/to/binary
>> 5) if binary found, then execute the binary with the file as a parameter and put output into new tab and exit
>> 6) if no, answer with helpful text, then exit
>> Anyway, that was the idea.
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode