Imacros little help required - imacros

Hi I wanna scrap url from http://www.yelp.com/biz/pooka-pure-and-simple-orange-2#query:business but when I played script its not giving me the output in output file at location {{!COL2}}.
Please help.Your special consideration will be highly appreciated. Thank you.
VERSION BUILD=8601111 RECORDER=FX
TAB T=1
SET !DATASOURCE 130.csv
SET !DATASOURCE_COLUMNS 1
SET !DATASOURCE_LINE {{!LOOP}}
SET !EXTRACT_TEST_POPUP NO
URL GOTO={{!COL1}}
SET !ERRORIGNORE YES
TAG POS=1 TYPE=DIV ATTR=ID:bizUrl:* EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=* FILE=130.csv

it will not work like this because of several reasons:
you can't save result to currently used source file
even if you can it will other-write data in first column and not in second
your source file has only one column because of SET !DATASOURCE_COLUMNS 1
you are using * in file path so it will use standard download folder specified in the Paths tab of the Options dialog and not Datasources default folder used for source file.

Related

iMacros for Chrome: How to replay Macro if error occurred?

I have this simple 3 line macro to load a form and submit, sometime I get this "RuntimeError: element SPAN specified by TXT:Submit was not found, line: 3" how can I auto replay the macro? I would like to replay the macro until the form is submitted. I am using iMacros for Chrome Version 10.1.1, thank you.
SET !TIMEOUT_STEP 0
URL GOTO=https://docs.google.com/forms/......
TAG POS=2 TYPE=SPAN ATTR=TXT:Submit
Yeah, well..., your !TIMEOUT_STEP (=0) is "(part of) the problem"...!
'Google' Docs/Forms are "known" to be pretty "heavy" Pages that take "some time" to load, (especially if you are the Owner/Editor of the Doc/Form), and even when the Browser "thinks" that the Page has fully loaded (and tells iMacros (after the URl GOTO), => "Go on, the Page has loaded, you can proceed with the rest of the Script"...), there is probably still some background JS Validation on the Page/Fields (Required Fields, Data Formatting, etc...), before that 'Submit' Button will appear or get Activated...
Use a longer Setting/Value for !TIMEOUT_STEP, => at least =1, but =3 or the Default =6 would also be OK and much more "reliable" than your =0...
And/or, add a mini-WAIT Statement after the URL GOTO.
And/or, add a mini-!PLAYBACKDELAY Statement at the beginning of the Sccript, or at least after the URL GOTO.
... Other Techniques are also available to "increase Reliability" (=> loop the Script with !ERRORIGNORE activated and conditionally abort it (with EXTRACT + EVAL() + MacroError()) when successful, set any of the 'Timeout' Options I mention conditionally, combined with extracting the "Result" after clicking on the 'Submit' Button, etc...), but they will all be "fighting" against your !TIMEOUT_STEP=0 which is too short...

InDesign Applescript - Replacing missing fonts

I have a missing font and I am trying to auto-replace it while doing other things, however I can't seem to ACTUALLY find it for whatever reason. After entering this code if I open the find/change window the find/change format windows look accurate,
but if I click them and change "Basic Character Formats" the family for both is reading as blank.
tell application "Adobe InDesign CC 2017"
set find text preferences to nothing
set change text preferences to nothing
--Set the find options.
set properties of find change text options to {case sensitive:false, whole word:false, include footnotes:false, include hidden layers:false, include locked layers for find:false, include locked stories for find:false, include master pages:false}
set properties of find text preferences to {applied font:"Avenier (T1)", font style:"55 Roman"}
set properties of change text preferences to {applied font:"Avenier", font style:"Roman "}
tell active document
set myFoundItems to change text
display dialog ("Found " & (count myFoundItems) & " instances.")
end tell
end tell
Does anyone have any clues how to fix this?

Change Records List text vtiger 6.4

I have created a custom module and when I see the list view of that module I see "Records List" in the left hand side sidebar (please see the screenshot for the same) so I want to change this text to "Module Name List"
Please help
You have to change the label in language file
Open YOUR_MODULE_NAME.php file. \languages\en_us\YOUR_MODULE_NAME.php.php
Change 'LBL_RECORDS_LIST' => 'YOUR_MODULE_NAME List'
Reload cache. Done!!
Changing language file
You should see it in the language file, however, if it's not there just add the line yourself (just make sure you put the comma at the end). If you want to change it for all modules, edit the label in the languages/en_us/Vtiger.php (should be line 414 or close to it)

How to use imacros inside html file

How can I correctly use Imacros in JS file? I added a macros script to bookmarks and took location and put inside the JS file,but it seems that its not working. What is the cause why its not working?
I used this command.
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" imacros:/\/run/?m=%23Current.iim;
Refer the URL http://wiki.imacros.net/iimPlay() , you need to specify like this
iimPlay ("c:\MyMacros\macro1.iim")
Figured out how to run Imacros from HTML file.
Add imacros to bookmarks.
Click property, copy location link.
In Html file between <script>tag put: window.location.href='imacros://run/?m=%23Current.iim';

iMacros: Wrong format of SET command (trying to change html with javascript on youtube)

I am busy with making a macro in iMacros, but the script won't work.
The function of the script is to add autoplay=1 on a youtube video. I would need this macro to play youtube videos which don't automatically play on particular sites!
Here's my code:
SET !VAR1 (\"var test = document.getElementsByTagName('object')[0].getAttribute('data');
var test2 = test.replace(autoplay=0, autoplay=1)
document.getElementById(myytplayer).data=test2
")
Help is really appreciated!
This cannot work. In order to execute JavaScript in iMacros you have to use URL command
URL GOTO=javascript:javascriptcode;
And even this is not 100% sure way of executing JS on the web page.