所以,我目前正在研究一个iMacros脚本,并且发现了这个错误。 做当:SAVEAS变量文件夹位置[iMacros]
FILEDELETE NAME =
或
SAVEAS TYPE = EXTRACT FOLDER =
我们可以指定一个文件夹,howevery怎能指定具有变量的文件夹? 我的意思是像%USERPROFILE%,因为不是每个人的用户名是admin /管理员等...... 因为这是我喜欢做的(没有工作):
'deleting previous temporary files
FILEDELETE NAME=%USERPROFILE%\Documents\iMacros\Datasources\temp.csv
SET !EXTRACT NULL
'extracting Txt
TAG POS=1 TYPE=H2 ATTR=TXT:* EXTRACT=TXT
'and saving them to the datasources location
SAVEAS TYPE=EXTRACT FOLDER=%USERPROFILE%\Documents\iMacros\Datasources\ FILE=temp.csv
'and later calling the file
SET !DATASOURCE temp.csv
SET !DATASOURCE_LINE {{!LOOP}}
PROMPT {{!COL1}}
为什么我这样做仅仅是因为某些浏览器“跟踪”了自动化并禁用了一些功能,但是通过这种方式(使用C:\ Users \ Administrator \ Documents \ iMacros \ Datasources \ ...进行测试)浏览器不是“跟踪”。是的,我一直在私密浏览。
您是否使用JS脚本? – macroscripts
正如你所看到的,不,只有iMacros – Tanckom
你知道['!FOLDER_DATASOURCE'变量](http://wiki.imacros.net/!FOLDER_DATASOURCE)吗? [Here](http://stackoverflow.com/questions/32921157/how-can-i-use-short-link-to-datasource-folder)就是一个例子。 – Shugar