Skip to content

Commit

Permalink
refine Linux message for pdf, doc, xls
Browse files Browse the repository at this point in the history
  • Loading branch information
kensoh committed Jan 6, 2022
1 parent 1800d42 commit 8401db5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

**Free RPA tool by [AI Singapore](https://aisingapore.org), a government-funded programme to accelerate AI. To start, click the download link below. Take the [free course](https://learn.aisingapore.org/courses/learn-rpa-with-tagui-beginners-course/). Ask any questions at [our Telegram](https://t.me/rpa_chat).**

**[Download v6.104](https://tagui.readthedocs.io/en/latest/setup.html) | [Usage Guide](https://tagui.readthedocs.io/en/latest/index.html) | [Demos](https://github.com/aimakerspace/TagUI-Bricks) | [Samples](https://github.com/kelaberetiv/TagUI/tree/master/flows/samples) | [Slides](https://docs.google.com/presentation/d/1pltAMzr0MZsttgg1w2ORH3ontR6Q51W9/edit?usp=sharing&ouid=115132044557947023533&rtpof=true&sd=true) | [Podcast](https://botnirvana.org/podcast/tagui/) | [Video](https://www.youtube.com/watch?v=C5itbB3sCq0) | [Forum](https://community.aisingapore.org/groups/tagui-rpa/forum/) | [Zoom](https://github.com/kelaberetiv/TagUI/issues/914)**
**[Download v6.105](https://tagui.readthedocs.io/en/latest/setup.html) | [Usage Guide](https://tagui.readthedocs.io/en/latest/index.html) | [Demos](https://github.com/aimakerspace/TagUI-Bricks) | [Samples](https://github.com/kelaberetiv/TagUI/tree/master/flows/samples) | [Slides](https://docs.google.com/presentation/d/1pltAMzr0MZsttgg1w2ORH3ontR6Q51W9/edit?usp=sharing&ouid=115132044557947023533&rtpof=true&sd=true) | [Podcast](https://botnirvana.org/podcast/tagui/) | [Video](https://www.youtube.com/watch?v=C5itbB3sCq0) | [Forum](https://community.aisingapore.org/groups/tagui-rpa/forum/) | [Zoom](https://github.com/kelaberetiv/TagUI/issues/914)**

---

Expand Down
2 changes: 1 addition & 1 deletion src/tagui
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ chrome_command="google-chrome"

if [ -z "$1" ]
then
echo "tagui v6.104: use following options and this syntax to run - ./tagui flow_filename option(s)"
echo "tagui v6.105: use following options and this syntax to run - ./tagui flow_filename option(s)"
echo
echo "tagui live launch TagUI live mode enabled with visual automation for interactive development"
echo "tagui update download and update to latest TagUI version (please backup your version beforehand)"
Expand Down
2 changes: 1 addition & 1 deletion src/tagui.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rem enable windows for loop advanced flow control
setlocal enableextensions enabledelayedexpansion

if "%~1"=="" (
echo tagui v6.104: use following options and this syntax to run - tagui flow_filename option^(s^)
echo tagui v6.105: use following options and this syntax to run - tagui flow_filename option^(s^)
echo.
echo tagui live launch TagUI live mode enabled with visual automation for interactive development
echo tagui update download and update to latest TagUI version ^(please backup your version beforehand^)
Expand Down
10 changes: 5 additions & 5 deletions src/tagui_header.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ if (excel_array[row][col] && !isNaN(excel_array[row][col])) excel_array[row][col
excel_result = excel_array;} else {excel_result = excel_result.split('[EXCEL_DELIMITER]')[0];
if (excel_result && !isNaN(excel_result)) excel_result = Number(excel_result);}
excel_json = response.data;}, function() {this.echo('ERROR - Excel automation exceeded '+(3 * casper.options.waitTimeout/1000).toFixed(1)+'s timeout').exit();},(3 * casper.options.waitTimeout));}
else casper.echo('ERROR - unknown operating system ' + user_system).exit();}
else casper.echo('ERROR - unsupported operating system ' + user_system).exit();}

function size_to_excel_range(cell, width, height) { // for converting array to range
var row_start = parseInt(cell.match(/\d+/g)); var row_end = row_start + height - 1;
Expand Down Expand Up @@ -321,7 +321,7 @@ excel_steps += 'tell application "Microsoft Excel"\r\n\t' + excel_focus_code +
casper.waitForExec('osascript excel_steps.scpt', null, function(response) {excel_result = '';
excel_result = (response.data.stdout.trim() || response.data.stderr.trim());
excel_json = response.data;}, function() {this.echo('ERROR - Excel automation exceeded '+(3 * casper.options.waitTimeout/1000).toFixed(1)+'s timeout').exit();},(3 * casper.options.waitTimeout));}
else casper.echo('ERROR - unknown operating system ' + user_system).exit();}
else casper.echo('ERROR - unsupported operating system ' + user_system).exit();}

// for excel statements - retrieving data for variable on right side of = sign
// broken into 2 functions for excel_result to be usable with CasperJS structure
Expand Down Expand Up @@ -364,7 +364,7 @@ save_text('excel_steps.scpt', excel_steps);
casper.waitForExec('osascript excel_steps.scpt', null, function(response) {excel_result = '';
excel_result = (response.data.stdout.trim() || response.data.stderr.trim());
excel_json = response.data;}, function() {this.echo('ERROR - Excel automation exceeded '+(3 * casper.options.waitTimeout/1000).toFixed(1)+'s timeout').exit();},(3 * casper.options.waitTimeout));}
else casper.echo('ERROR - unknown operating system ' + user_system).exit();}
else casper.echo('ERROR - unsupported operating system ' + user_system).exit();}

function read_word(input_word) { // for reading from word target
if (user_system == 'windows') {
Expand Down Expand Up @@ -394,7 +394,7 @@ word_steps += 'do shell script "pbpaste > word_steps.out 2>&1"'; save_text('word
casper.waitForExec('osascript word_steps.scpt', null, function(response) {
word_result = ''; word_result = require('fs').read('word_steps.out').trim();
}, function() {this.echo('ERROR - Word automation exceeded '+(3 * casper.options.waitTimeout/1000).toFixed(1)+'s timeout').exit();},(3 * casper.options.waitTimeout));}
else casper.echo('ERROR - unknown operating system ' + user_system).exit();}
else casper.echo('ERROR - unsupported operating system ' + user_system).exit();}

function write_word(output_word) { // for writing to word target
casper.echo('ERROR - writing to Word file not supported').exit();}
Expand Down Expand Up @@ -443,7 +443,7 @@ pdf_steps += 'do shell script "pbpaste > pdf_steps.out 2>&1"'; save_text('pdf_st
casper.waitForExec('osascript pdf_steps.scpt', null, function(response) {
pdf_result = ''; pdf_result = require('fs').read('pdf_steps.out').trim();
}, function() {this.echo('ERROR - PDF automation exceeded '+(3 * casper.options.waitTimeout/1000).toFixed(1)+'s timeout').exit();},(3 * casper.options.waitTimeout));}
else casper.echo('ERROR - unknown operating system ' + user_system).exit();}
else casper.echo('ERROR - unsupported operating system ' + user_system).exit();}

function write_pdf(output_pdf) { // for writing to pdf target
casper.echo('ERROR - writing to PDF file not supported').exit();}
Expand Down
10 changes: 5 additions & 5 deletions src/test/positive_test.signature
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ if (excel_array[row][col] && !isNaN(excel_array[row][col])) excel_array[row][col
excel_result = excel_array;} else {excel_result = excel_result.split('[EXCEL_DELIMITER]')[0];
if (excel_result && !isNaN(excel_result)) excel_result = Number(excel_result);}
excel_json = response.data;}, function() {this.echo('ERROR - Excel automation exceeded '+(3 * casper.options.waitTimeout/1000).toFixed(1)+'s timeout').exit();},(3 * casper.options.waitTimeout));}
else casper.echo('ERROR - unknown operating system ' + user_system).exit();}
else casper.echo('ERROR - unsupported operating system ' + user_system).exit();}

function size_to_excel_range(cell, width, height) { // for converting array to range
var row_start = parseInt(cell.match(/\d+/g)); var row_end = row_start + height - 1;
Expand Down Expand Up @@ -348,7 +348,7 @@ excel_steps += 'tell application "Microsoft Excel"\r\n\t' + excel_focus_code +
casper.waitForExec('osascript excel_steps.scpt', null, function(response) {excel_result = '';
excel_result = (response.data.stdout.trim() || response.data.stderr.trim());
excel_json = response.data;}, function() {this.echo('ERROR - Excel automation exceeded '+(3 * casper.options.waitTimeout/1000).toFixed(1)+'s timeout').exit();},(3 * casper.options.waitTimeout));}
else casper.echo('ERROR - unknown operating system ' + user_system).exit();}
else casper.echo('ERROR - unsupported operating system ' + user_system).exit();}

// for excel statements - retrieving data for variable on right side of = sign
// broken into 2 functions for excel_result to be usable with CasperJS structure
Expand Down Expand Up @@ -391,7 +391,7 @@ save_text('excel_steps.scpt', excel_steps);
casper.waitForExec('osascript excel_steps.scpt', null, function(response) {excel_result = '';
excel_result = (response.data.stdout.trim() || response.data.stderr.trim());
excel_json = response.data;}, function() {this.echo('ERROR - Excel automation exceeded '+(3 * casper.options.waitTimeout/1000).toFixed(1)+'s timeout').exit();},(3 * casper.options.waitTimeout));}
else casper.echo('ERROR - unknown operating system ' + user_system).exit();}
else casper.echo('ERROR - unsupported operating system ' + user_system).exit();}

function read_word(input_word) { // for reading from word target
if (user_system == 'windows') {
Expand Down Expand Up @@ -421,7 +421,7 @@ word_steps += 'do shell script "pbpaste > word_steps.out 2>&1"'; save_text('word
casper.waitForExec('osascript word_steps.scpt', null, function(response) {
word_result = ''; word_result = require('fs').read('word_steps.out').trim();
}, function() {this.echo('ERROR - Word automation exceeded '+(3 * casper.options.waitTimeout/1000).toFixed(1)+'s timeout').exit();},(3 * casper.options.waitTimeout));}
else casper.echo('ERROR - unknown operating system ' + user_system).exit();}
else casper.echo('ERROR - unsupported operating system ' + user_system).exit();}

function write_word(output_word) { // for writing to word target
casper.echo('ERROR - writing to Word file not supported').exit();}
Expand Down Expand Up @@ -470,7 +470,7 @@ pdf_steps += 'do shell script "pbpaste > pdf_steps.out 2>&1"'; save_text('pdf_st
casper.waitForExec('osascript pdf_steps.scpt', null, function(response) {
pdf_result = ''; pdf_result = require('fs').read('pdf_steps.out').trim();
}, function() {this.echo('ERROR - PDF automation exceeded '+(3 * casper.options.waitTimeout/1000).toFixed(1)+'s timeout').exit();},(3 * casper.options.waitTimeout));}
else casper.echo('ERROR - unknown operating system ' + user_system).exit();}
else casper.echo('ERROR - unsupported operating system ' + user_system).exit();}

function write_pdf(output_pdf) { // for writing to pdf target
casper.echo('ERROR - writing to PDF file not supported').exit();}
Expand Down

0 comments on commit 8401db5

Please sign in to comment.