Any Imacros Command/Script To Retrieve Firefox Profile Name

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

Any Imacros Command/Script To Retrieve Firefox Profile Name

by ysl78 on Mon Jan 29, 2018 9:56 am

Hi,

Anyone know Imacros command or script which able to retrieve current running firefox profile name.Thanks.
ysl78
 
Posts: 1
Joined: Mon Jan 29, 2018 9:27 am

Re: Any Imacros Command/Script To Retrieve Firefox Profile

by chivracq on Mon Jan 29, 2018 11:12 am

ysl78 wrote:Hi,

Anyone know Imacros command or script which able to retrieve current running firefox profile name.Thanks.

CIM...! :mrgreen: (Read my Sig...)

Hum..., interesting Qt but it doesn't look very complicated to find a Solution, all Info/Data you are looking for is displayed on 'about:profiles' for example...:
Code: Select all
VERSION BUILD=8970419 RECORDER=FX
TAB T=1

URL GOTO=about:profiles
WAIT SECONDS=0.5

TAG POS=1 TYPE=TH ATTR=TXT:Root*
SET !EXTRACT NULL
TAG POS=R1 TYPE=TD ATTR=* EXTRACT=TXT
SET Root_Prf EVAL("var s='{{!EXTRACT}}'; var x,y,z; x=s.split('Profiles\'); y=x[1].split(' '); z=y[0]; z")

TAG POS=1 TYPE=TH ATTR=TXT:Local*
SET !EXTRACT NULL
TAG POS=R1 TYPE=TD ATTR=* EXTRACT=TXT
SET Local_Prf EVAL("var s='{{!EXTRACT}}'; var x,y,z; x=s.split('Profiles\'); y=x[1].split(' '); z=y[0]; z")

PROMPT Root_Profile:<SP>_{{Root_Prf}}_<BR>Local_Profile:<SP>_{{Local_Prf}}_
(Tested on iMacros for FF v8.9.7, FF v55.0.3, Win10_x64.)

I only have 1 (Default) Profile on my FF Env., you might need to adjust the 'POS=n' for the Header or the 'POS=Rn' for the Path if you have several Profiles...

Hum..., and this Script doesn't seem to work on Pale Moon (where I do have several Profiles...) (PM v26.3.3 + iMacros for FF v8.8.2) as PM doesn't seem to support 'about:profiles'.
- (F)CIM = (Full) Config Info Missing: iMacros + Browser + OS with all 3 Versions...
- I usually don't even read the Question if that (required) Info is not mentioned...
- Script & URL usually help a lot for a more "educated" Help...
chivracq
 
Posts: 6687
Joined: Sat Apr 13, 2013 6:07 am
Location: Amsterdam (NL)


Return to iMacros for Firefox

Who is online

Users browsing this forum: Bing [Bot] and 7 guests

cron
-->