🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.indesign.windows
Article #31

Re: (VB CS3) How do I reference a saved Grep query?

#31
From: Robert Tkaczyk
Date: Wed, 01 Apr 2009 21:19
23 lines
2153 bytes
Sub LoadFindChangeQuery(QueryName As String, SearchMode As idSearchModes)
    Member of InDesign.Application
    Loads the specified find/change query. / QueryName: The query to load. / SearchMode: The search mode.

but you need to know the name - somebody didn't think about giving us list with saved queries ...

so you have two options:
a) you know Queries names
b) you will look for XML files in four subdirectories (text, grep, glyph, object) located in:
%USERPROFILE%\AppData\Roaming\Adobe\InDesign\Version 5.0\Find-Change Queries\ subfolder - XML file name is Query's name - and I think CaseSensitive ...

next "problem" - there could be localized name of "Version 5.0" subfolder - i.e. "Wersja 5.0" ... so if you have InDesign's user interface set to your language - I think you should change "Version 5.0" subfolder name ... I'm using EN interface so my queries are saved in "Version 5.0" subfolder

in CS4 finally somebody thinks better - all localized versions of InDesign have universal names of subfolders - en_GB, es_ES, ja_JP, en_US, hu_HU, pl_PL - and in these subfolders you can find "Find-Change Queries" subfolder and inside - text, grep, glyph, object subfolders

%USERPROFILE%\AppData\Roaming\Adobe\InDesign\Version 6.0\en_GB\Find-Change Queries\

but CS4 still doesn't have list of saved queries ...

robin

-- 
www.adobescripts.com
Technical Details
Message-ID: <66002C11FEB6F0B725B27867A6A75F73@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
References: <59b8792f.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f51c6,ff182c3fece35c87
X-Google-Attributes: gidf51c6,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Robert Tkaczyk <indesignscripts@wp.pl>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.indesign.windows
Subject: Re: (VB CS3) How do I reference a saved Grep query?
Message-ID: <66002C11FEB6F0B725B27867A6A75F73@in.webcrossing.la2eafNXanI>
Date: Wed, 1 Apr 2009 14:19:51 -0700
References: <59b8792f.-1@webcrossing.la2eafNXanI>
Lines: 37
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
X-Antivirus: avast! (VPS 090331-0, 2009-03-31), Outbound message
X-Antivirus-Status: Clean
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit