cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

RE: ACL code to go to a specific bookmark

SindyYoung
2-Guest

RE: ACL code to go to a specific bookmark


Steve,

you could class=569231918-08062007>try going into
help>contents>arbortext command language>frequently used commands. just
a thought maybe find something there.


sindy





From: Steven Haber

Sent: Friday, June 08, 2007 11:17 PM
To:
Adepters@maillist.arbortext.com
Subject: ACL code to go to a specific
bookmark


I've searched the help and tried to get info by diving into the
packages supplied with Arbortext Editor, but I can't seem to find the ACL I'd
need to go to a specific bookmark in a file.

I've placed a bookmark
named "Bookmark 1" in a file. I can get back to it via the menu, but I need to
write code to do it.

The file has a "?Pub" processing instruction:
" which is where I need to push the
cursor to.

I'm hoping this is easy for a more experienced ACL
programmer. Any clues are appreciated. Thanks. >> To unsubscribe from the
list, send an email to listmanager@maillist.arbortext.com with the following in
the body: unsubscribe adepters - For additional information on the adepters list
(how to subscribe or unsubscribe etc), send an email to:
listmanager@maillist.arbortext.com with the following in the body: info Adepters
- You may also go to forums.arbortext.com, enter the Adepters folder and change
your subscription options and preferences.>>
4 REPLIES 4

The following is at least available in
5.2:


bookmark::goto_bookmark("Bookmark 1")


The bookmark package is defined within
\packages\tools\bookmark.acl


May want to add a "require bookmark;" statement if used
within one of your ACL files.


HTH,

class=770412718-08062007>Brent





From: Steven Haber

Sent: Saturday, June 09, 2007 2:17 AM
To:
Adepters@maillist.arbortext.com
Subject: Tagged: ACL code to go to a
specific bookmark


I've searched the help and tried to get info by diving into the
packages supplied with Arbortext Editor, but I can't seem to find the ACL I'd
need to go to a specific bookmark in a file.

I've placed a bookmark
named "Bookmark 1" in a file. I can get back to it via the menu, but I need to
write code to do it.

The file has a "?Pub" processing instruction:
" which is where I need to push the
cursor to.

I'm hoping this is easy for a more experienced ACL
programmer. Any clues are appreciated. Thanks. >> To unsubscribe from the
list, send an email to listmanager@maillist.arbortext.com with the following in
the body: unsubscribe adepters - For additional information on the adepters list
(how to subscribe or unsubscribe etc), send an email to:
listmanager@maillist.arbortext.com with the following in the body: info Adepters
- You may also go to forums.arbortext.com, enter the Adepters folder and change
your subscription options and preferences.>>

I've searched the help and tried to get info by diving into the packages supplied with Arbortext Editor, but I can't seem to find the ACL I'd need to go to a specific bookmark in a file.

I've placed a bookmark named "Bookmark 1" in a file. I can get back to it via the menu, but I need to write code to do it.

The file has a "?Pub" processing instruction: " which is where I need to push the cursor to.

I'm hoping this is easy for a more experienced ACL programmer. Any clues are appreciated. Thanks.


Steven,

I do what Brent suggested myself now and then, i.e. use undocumented ACL functions
found by code digging. However, be careful: Such functions may suddenly disappear.

Of course, the systematic regression testing we all systematically conduct
before a new Arbortext release is taken in production would pin point that.

An alternative to _using_ such a function can sometimes be to _copy_ it
into your own code. That creates sort of insulating layer against surprises.

/ K J

On Fri, 8 Jun 2007 14:30:21 -0400, Brent.Hartwig@thomson.com said:
> The following is at least available in 5.2:
>
> bookmark::goto_bookmark("Bookmark 1")
>
> The bookmark package is defined within
> \packages\tools\bookmark.acl
>
> May want to add a "require bookmark;" statement if used within
> one of your ACL files.
>
> HTH,
>
> Brent

Brent:

That's EXACTLY what I needed. Thanks!

--Steven
Announcements