Scrollable frame is text: anchored object in text can not be button?
Following example: A textframe. With an anchored object (group). Paste textframe in other frame to make scrollable frame (pan only). Select anchored frame in already pasted into textframe, make button for anchored object (go to state).
Does not work, button does nothing (and yes a converted it to a button after the paste into other frame as last step).
Not possible?
DPS v18
If you want the button in the scrollable frame to control an MSO state, the button/scrollable frame needs to be part of the MSO. It is an InDesign limitation that buttons cannot control videos, audio clips, or MSOs unless they're on the same "level" in the document.
Similar Messages
-
I'm trying to use voice texting on iphone 4s. The model is MC676LL/A yet i don't find siri in settings-general. can anyone help?
As provided:
The model number you posted is for an iPhone 4, not a 4S. Thus, if you have an iPhone 4, that's why you don't have Siri. -
RE: Named anchored objects
Albert,
In my case I was using a named anchored object to get a handle to an actual
service object. My named object that I registered in the name service was
an intermediary to which I did not maintain a connection. So I have not
explicitly tested what you are asking.
However, I too was not using a hard coded reference to the SO, and fail over
and load balancing worked fine. The functions of fail over and load
balancing are not done by the service object but by the name service, proxy
and router. Since you are getting a proxy back any time you do a lookup in
the name service I would think that fail over should work with any anchored
object that is registered in the name service. When you do a RegisterObject
call you will notice that one of the arguments is the session duration,
which implies to me that fail over will be handled the same as for service
objects.
Load balancing adds another wrinkle. Load balancing is handled by a router.
You must get a proxy to the router and not a proxy to an instance of the
object that the router is doing the load balancing for. In the latter
scenario you will be bypassing the router. If you are creating, anchoring
and registering your objects dynamically you will not have a router so you
will not be able to load balance! This applies even if the objects are
instantiated within partitions that are load balanced because you will still
be getting proxies back to a particular instance of the anchored objects.
There are ways to accomplish load balancing between objects that you
register yourself. However, the best solution will vary depending on the
actual problem trying to be solved. If you would like to discuss this
further, include a little more detail about the scenario you need to
implement and I will give you what I know.
BTY what I have outlined above also applies to getting references via a
system agent.
Sean
Cornice Consulting, Inc.
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of Albert Dijk
Sent: Friday, July 03, 1998 11:01 AM
To: [email protected]
Subject:
Alex, David, Jez, Sean,...
My question about both solutions (using Nameservice and agents) is:
If I reach a remote service object using either a BindObject or an agent, do
fail-over and load-balancing work the same way as they normally do when
using a hard coded reference to the SO.
Albert Dijk
From: Sean Brown[SMTP:[email protected]]
Reply To: [email protected]
Sent: Thursday, June 25, 1998 6:55 AM
To: Ananiev, Alex; [email protected]
Subject: RE: multiple named objects with the same name and
interface
Alexander,
I can not comment on the speed difference because I never tested it.
But, I
will say that we looked at the agent solution at a client sight
before. I
will give the same warning I gave them. If you go the agent direction
you
are now using agents for a purpose that they were not intended. Even
though
it technically works, as soon as you start using a piece of
functionality in
a way the developer did not intend it to be used you run the risk of
forward
compatibility problems. By this I mean, since agents were not
originally
intended to be used to look up service / anchored object references,
it may
not work in the future because it is not likely to be given
consideration in
any future design.
As we all know, programmers are always stretching the bounds of the
tools
they use and you may have a good reason (i.e. performance). I just
wanted to
let you know the possible risk.
One final note on a limitation of using system agents to obtain
references
to anchored objects. You can not access agents across environments.
So, if
you have connected environments and need to get references to services
in
another environment for fail-over or whatever, you will not be able to
do it
with agents.
Just some thoughts!
Sean
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]]On">mailto:[email protected]]On</a> Behalf Of Ananiev, Alex
Sent: Wednesday, June 24, 1998 12:14 PM
To: '[email protected]'
Subject: RE: multiple named objects with the same name and interface
David,
The problem with dynamic binding is that in this case you have to keep
the reference to the service object somewhere. You don't want to call
"bindObject" every time you need to use this service object, "bind" is
a
time-consuming operation, even on the same partition. Keeping
reference
could be undesirable if your object could be moved across partitions
(e.g. business object).
The alternative solution is to use agents. You can create custom
agent,
make it a subagent of an active partition agent and use it as a
placeholder for whatever service you need. "FindSubAgent" works much
faster than "bindObject", we verified that and agent is "user-visible"
by its nature.
Alexander
From: "Sean Brown" <[email protected]>
Date: Wed, 24 Jun 1998 09:12:55 -0500
Subject: RE: multiple named objects with the same name and interface
David,
I actually determined it through testing. In my case I did not want
this to
happen and was trying to determine why it was happing. It makes sense
if
you think about it. Forte is trying to avoid making a remote method
invocation if it can.
Now, for anything more complex than looking locally first and if none
is
found give me any remote instance you can find, you will need to do
more
work. Using a naming scheme like Jez suggests below works well.
Sean
- -----Original Message-----
From: Jez Sygrove [<a href="mailto:[email protected]">mailto:[email protected]</a>]
Sent: Wednesday, June 24, 1998 4:34 AM
To: [email protected]; 'David Foote'
Cc: [email protected]
Subject: RE: multiple named objects with the same name and interface
David,
there's a mechanism used within SCAFFOLDS that allows the
location of the 'nearest' SO when more than one is available.
It involves registering each duplicated SO under three dynamically
built
names. The names include the partition, the node or the environment
name.
When wishing to locate the nearest SO the BO builds a SO name using
its
own partition and asks the name service for that.
If there is an SO registered under that name then it must be in the
same
partition and all is well. No cross partition calls.
If not, then the BO builds the name using its node and asks the name
service for that.
This means that if there is an SO outside the BO partition but still
on
the same node then this can be used. Again, relatively 'local'.
If neither of these work then the BO has to resort to an environment
wide search.
It may be that this approach could be adapted / adopted; I like it's
ingenuity.
Cheers,
Jez
From: David Foote[SMTP:[email protected]]
Reply To: David Foote
Sent: 24 June 1998 03:17
To: [email protected]
Cc: [email protected]
Subject: RE: multiple named objects with the same name and
interface
Sean,
First, thank you for your response. I have wondered about this fora
long time.
I looked at the documentation for ObjectLocationManager and on page
327
of the Framework Library and AppletSupport Library Guide indescribing
the BindObject method Forte says:
"The name service allows more than one anchored object (from
different
partitions) to be registered in the name service under the same
registration name. When you invoke the BindObject method with a
request
for a name that has duplicate registration entries, the BindObject
method finds an entry corresponding to an active partition, skipping
any
entries that do not. If no such active partition is found, or if the
requested name is not found in the name service registry, a
RemoteAccessException will be raised when the BindObject method is
invoked."
My question is: How did you discover that in the case of duplicate
registrations the naming service will return the local object if one
exists? This is not apparent from the documentation I have quoted.
Is
it documented elsewhere? Or did you determine it empirically?
David N. Foote,
Consultant
----Original Message Follows----
David,
First I will start by saying that this can be done by using named
anchored
objects and registering them yourself in the name service. There is
documentation on how to do this. And by default you will get mostof
the
behavior you desire. When you do a lookup in the name service
(BindObject
method) it will first look in the local partition and see if thereis
a
local copy and give you that copy. By anchoring the object and
manually
registering it in the name service you are programmatically creating
your
own SO without defining it as such in the development environment.
BTW
in
response to your item number 1. This should be the case there as
well.
If
your "mobile" object is in the same partition where the serviceobject
he is
calling resides, you should get a handle to the local instance ofthe
service object.
Here is the catch, if you make a bind object call and there is no
local
copy
you will get a handle to a remote copy but you can not be sure which
one!
It end ups as more or less a random selection. Off the top of myhead
and
without going to the doc, I am pretty sure that when you register an
anchored object you can not limit it's visibility to "User".
Sean
-----Original Message-----
From: [email protected]
[<a href=
"mailto:[email protected]]On">mailto:[email protected]]On</a> Behalf Of David Foote
Sent: Monday, June 22, 1998 4:51 PM
To: [email protected]
Subject: multiple named objects with the same name and interface
All,
More than once, I have wished that Forte allowed you to place named
objects with the same name in more than one partition. There aretwo
situations in which this seems desirable:
1) Objects that are not distributed, but are mobile (passed by value
to
remote objects), cannot safely reference a Service Object unless it
has
environment visibility, but this forces the overhead of a remote
method
call when it might not otherwise be necessary. If it were possibleto
place a copy of the same Service Object (with user visibility) ineach
partition, the overhead of a remote method call could be avoided.
This
would only be useful for a service object whose state could besafely
replicated.
2) My second scenario also involves mobile objects referencing a
Service
Object, but this time I would like the behavior of the calledService
Object to differ with the partition from which it is called.
This could be accomplished by placing Service Objects with the same
name
and the same interface in each partition, but varying the
implementation
with the partition.
Does anyone have any thoughts about why this would be a good thingor
a
bad thing?
David N. Foote
Consultant
Alexander Ananiev
Claremont Technology Group
916-558-4127
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:<a href="http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
>
>
>
Alexander Ananiev
Claremont Technology Group
916-558-4127
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>Albert,
In my case I was using a named anchored object to get a handle to an actual
service object. My named object that I registered in the name service was
an intermediary to which I did not maintain a connection. So I have not
explicitly tested what you are asking.
However, I too was not using a hard coded reference to the SO, and fail over
and load balancing worked fine. The functions of fail over and load
balancing are not done by the service object but by the name service, proxy
and router. Since you are getting a proxy back any time you do a lookup in
the name service I would think that fail over should work with any anchored
object that is registered in the name service. When you do a RegisterObject
call you will notice that one of the arguments is the session duration,
which implies to me that fail over will be handled the same as for service
objects.
Load balancing adds another wrinkle. Load balancing is handled by a router.
You must get a proxy to the router and not a proxy to an instance of the
object that the router is doing the load balancing for. In the latter
scenario you will be bypassing the router. If you are creating, anchoring
and registering your objects dynamically you will not have a router so you
will not be able to load balance! This applies even if the objects are
instantiated within partitions that are load balanced because you will still
be getting proxies back to a particular instance of the anchored objects.
There are ways to accomplish load balancing between objects that you
register yourself. However, the best solution will vary depending on the
actual problem trying to be solved. If you would like to discuss this
further, include a little more detail about the scenario you need to
implement and I will give you what I know.
BTY what I have outlined above also applies to getting references via a
system agent.
Sean
Cornice Consulting, Inc.
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of Albert Dijk
Sent: Friday, July 03, 1998 11:01 AM
To: [email protected]
Subject:
Alex, David, Jez, Sean,...
My question about both solutions (using Nameservice and agents) is:
If I reach a remote service object using either a BindObject or an agent, do
fail-over and load-balancing work the same way as they normally do when
using a hard coded reference to the SO.
Albert Dijk
From: Sean Brown[SMTP:[email protected]]
Reply To: [email protected]
Sent: Thursday, June 25, 1998 6:55 AM
To: Ananiev, Alex; [email protected]
Subject: RE: multiple named objects with the same name and
interface
Alexander,
I can not comment on the speed difference because I never tested it.
But, I
will say that we looked at the agent solution at a client sight
before. I
will give the same warning I gave them. If you go the agent direction
you
are now using agents for a purpose that they were not intended. Even
though
it technically works, as soon as you start using a piece of
functionality in
a way the developer did not intend it to be used you run the risk of
forward
compatibility problems. By this I mean, since agents were not
originally
intended to be used to look up service / anchored object references,
it may
not work in the future because it is not likely to be given
consideration in
any future design.
As we all know, programmers are always stretching the bounds of the
tools
they use and you may have a good reason (i.e. performance). I just
wanted to
let you know the possible risk.
One final note on a limitation of using system agents to obtain
references
to anchored objects. You can not access agents across environments.
So, if
you have connected environments and need to get references to services
in
another environment for fail-over or whatever, you will not be able to
do it
with agents.
Just some thoughts!
Sean
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]]On">mailto:[email protected]]On</a> Behalf Of Ananiev, Alex
Sent: Wednesday, June 24, 1998 12:14 PM
To: '[email protected]'
Subject: RE: multiple named objects with the same name and interface
David,
The problem with dynamic binding is that in this case you have to keep
the reference to the service object somewhere. You don't want to call
"bindObject" every time you need to use this service object, "bind" is
a
time-consuming operation, even on the same partition. Keeping
reference
could be undesirable if your object could be moved across partitions
(e.g. business object).
The alternative solution is to use agents. You can create custom
agent,
make it a subagent of an active partition agent and use it as a
placeholder for whatever service you need. "FindSubAgent" works much
faster than "bindObject", we verified that and agent is "user-visible"
by its nature.
Alexander
From: "Sean Brown" <[email protected]>
Date: Wed, 24 Jun 1998 09:12:55 -0500
Subject: RE: multiple named objects with the same name and interface
David,
I actually determined it through testing. In my case I did not want
this to
happen and was trying to determine why it was happing. It makes sense
if
you think about it. Forte is trying to avoid making a remote method
invocation if it can.
Now, for anything more complex than looking locally first and if none
is
found give me any remote instance you can find, you will need to do
more
work. Using a naming scheme like Jez suggests below works well.
Sean
- -----Original Message-----
From: Jez Sygrove [<a href="mailto:[email protected]">mailto:[email protected]</a>]
Sent: Wednesday, June 24, 1998 4:34 AM
To: [email protected]; 'David Foote'
Cc: [email protected]
Subject: RE: multiple named objects with the same name and interface
David,
there's a mechanism used within SCAFFOLDS that allows the
location of the 'nearest' SO when more than one is available.
It involves registering each duplicated SO under three dynamically
built
names. The names include the partition, the node or the environment
name.
When wishing to locate the nearest SO the BO builds a SO name using
its
own partition and asks the name service for that.
If there is an SO registered under that name then it must be in the
same
partition and all is well. No cross partition calls.
If not, then the BO builds the name using its node and asks the name
service for that.
This means that if there is an SO outside the BO partition but still
on
the same node then this can be used. Again, relatively 'local'.
If neither of these work then the BO has to resort to an environment
wide search.
It may be that this approach could be adapted / adopted; I like it's
ingenuity.
Cheers,
Jez
From: David Foote[SMTP:[email protected]]
Reply To: David Foote
Sent: 24 June 1998 03:17
To: [email protected]
Cc: [email protected]
Subject: RE: multiple named objects with the same name and
interface
Sean,
First, thank you for your response. I have wondered about this fora
long time.
I looked at the documentation for ObjectLocationManager and on page
327
of the Framework Library and AppletSupport Library Guide indescribing
the BindObject method Forte says:
"The name service allows more than one anchored object (from
different
partitions) to be registered in the name service under the same
registration name. When you invoke the BindObject method with a
request
for a name that has duplicate registration entries, the BindObject
method finds an entry corresponding to an active partition, skipping
any
entries that do not. If no such active partition is found, or if the
requested name is not found in the name service registry, a
RemoteAccessException will be raised when the BindObject method is
invoked."
My question is: How did you discover that in the case of duplicate
registrations the naming service will return the local object if one
exists? This is not apparent from the documentation I have quoted.
Is
it documented elsewhere? Or did you determine it empirically?
David N. Foote,
Consultant
----Original Message Follows----
David,
First I will start by saying that this can be done by using named
anchored
objects and registering them yourself in the name service. There is
documentation on how to do this. And by default you will get mostof
the
behavior you desire. When you do a lookup in the name service
(BindObject
method) it will first look in the local partition and see if thereis
a
local copy and give you that copy. By anchoring the object and
manually
registering it in the name service you are programmatically creating
your
own SO without defining it as such in the development environment.
BTW
in
response to your item number 1. This should be the case there as
well.
If
your "mobile" object is in the same partition where the serviceobject
he is
calling resides, you should get a handle to the local instance ofthe
service object.
Here is the catch, if you make a bind object call and there is no
local
copy
you will get a handle to a remote copy but you can not be sure which
one!
It end ups as more or less a random selection. Off the top of myhead
and
without going to the doc, I am pretty sure that when you register an
anchored object you can not limit it's visibility to "User".
Sean
-----Original Message-----
From: [email protected]
[<a href=
"mailto:[email protected]]On">mailto:[email protected]]On</a> Behalf Of David Foote
Sent: Monday, June 22, 1998 4:51 PM
To: [email protected]
Subject: multiple named objects with the same name and interface
All,
More than once, I have wished that Forte allowed you to place named
objects with the same name in more than one partition. There aretwo
situations in which this seems desirable:
1) Objects that are not distributed, but are mobile (passed by value
to
remote objects), cannot safely reference a Service Object unless it
has
environment visibility, but this forces the overhead of a remote
method
call when it might not otherwise be necessary. If it were possibleto
place a copy of the same Service Object (with user visibility) ineach
partition, the overhead of a remote method call could be avoided.
This
would only be useful for a service object whose state could besafely
replicated.
2) My second scenario also involves mobile objects referencing a
Service
Object, but this time I would like the behavior of the calledService
Object to differ with the partition from which it is called.
This could be accomplished by placing Service Objects with the same
name
and the same interface in each partition, but varying the
implementation
with the partition.
Does anyone have any thoughts about why this would be a good thingor
a
bad thing?
David N. Foote
Consultant
Alexander Ananiev
Claremont Technology Group
916-558-4127
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:<a href="http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
>
>
>
Alexander Ananiev
Claremont Technology Group
916-558-4127
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>> -
Jagged Text In Scrollable Frame
We have created a folio which contains a scrollable frame with text in it. It functions correctly; however, the text looks jagged when we preview on an iPad. All the other text in the folio that is not in a scrollable frame looks great. Any thoughts?
You have PDF folio, but the text in scrollframe is bitmap. You must turn on option tlhat let you use vector text in scrollframes. Folio format version needs to be greater than 22.
Ants -
Get textFrame by label returns null and anchored objects
I have the following two functions:
function getByLabel(page, label)
for(var i=0; i < page.allPageItems.length; i++)
if( page.allPageItems[i].label == label )
return page.allPageItems[i];
and
Object.prototype.findItems = function(/*obj*/props)
if( !('everyItem' in this) )
throw new Error("Error: " + this + " is not a collection.");
var ret = this.everyItem().getElements(),
i = ret.length,
e, p;
while( i-- && e=ret[i] )
for( p in props )
if( (p in e) && e[p]===props[p] ) continue;
ret.splice(i,1);
return ret;
In my page structure, I got one main text frame (the content area) and two vertical text fromes on the sides of the page. There is also a small box textframe on top of the page. All these textboxes EXCEPT the main text frame are ALL "ANCHORED objects". I had to make them anchored objects, eitherwise after importing data, the boxes would jump around. (Example, the small box textframe that is on the top would get moved to the content area textframe etc). Not sure if using anchored objects is the proper way to fix this.
When I try to get the small box text frame, it does not work using the findItems (returns null) but it works fine with the getByLabel method. Why is that?
The calling syntax is:
for( i=0 ; i < doc.pages.length ; ++i )
var page = doc.pages.item(i);
var textFrame = getByLabel(page, 'lblSection' ); //This works
// var textFrame = page.textFrames.findItems({ label: 'lblSection' })[0]; This does not work, returns null
if( textFrame != null )
textFrame.parentStory.contents = "";(function () {
// Per the InDesign Scripting Guide, app.activeScript is only
// valid when a script is directly executed from InDesign, not
// from the ESTK, so a try/catch block is recommended to handle
// it.
var d;
try {
d = app.activeScript.parent.parent.fsName;
} catch (e) {
d = Folder.appPackage.parent.fsName+"/Scripts";
return d; -
Callouts and anchored objects - there must be a better way to do this
I've spent a lot of time in the last six months rebuilding PDF files in InDesign. It's part of my ordinary responsibilities, but I'm doing a lot more of it for some reason. Because I'm sending the text of these rebuild documents out for translation, I like to keep all of the text in a single story. It really helps to have the text in "logical order," I think; when I'm prepping a trifold brochure, I try pretty hard to make sure that the order in which the readers will read the text is duplicated in the flow of the story throughout the ID document.
So, I'm rebuilding a manual that has a 3-column format on lettersize paper, and it's full of callouts. Chock full of 'em. They're not pull quotes, either; each of these things has unique text. Keeping in mind that I'd like the text in these callouts to remain in the same position in the text once I've linked all the stories and exported an RTF for translation, what's the best way to handle them? What I've been doing is inserting an emptly stroked frame as an anchored object, sized and positioned to sit above the text that is supposed to be called out. When my translations come back, they're always longer than the source document, so as I crawl through the text, I resize the anchored frames to match the size and position of the newly expanded translated text, and then nudge them into place with the keyboard.
There Has To Be a Better Way.
There is a better way, right? I'm not actually too sure. If I want to actually fill those anchored frames with text, I can't thread them into the story. I suppose that I could just thread the callout frames and assign two RTFs for translation instead of one, but then the "logical order" of my text is thrown out the window. So, I'm down to asking myself "what's more important? reduction of formatting time or maintenance of the flow of the story?" If there's something I'm missing that would let me dodge this decision, I'd love to hear about it. The only thing I can think of would work like this:
1) Duplicate callout text in the story with a custom swatch "Invisible"
2) Create "CalloutText" parastyle with "Invisible" swatch and apply it to callout text
3) Insert anchor for anchored frame immediately before the CalloutText content
4) Send it out for translation
5) While I'm waiting for it to come back, write a script that would (dunno if this is possible):
a) Step through the main story looking for any instance of CalloutText
b) Copy one continguous instance of that style to the clipboard
c) Look back in the story for the first anchor preceeding the instance of CalloutText
d) Fill the anchored object with the text from the clipboard (this is where I'm really clueless)
e) Apply a new parastyle to the text in the callout
f) Continue stepping through the story looking for further instances of CalloutText
If this really is the only decent solution, I'll just head over to the Scripting forum for some help with d). Can any of you make other suggestions?In-Tools.com wrote:
The use of Side Heads saves weeks of manual labor.
Yup, Harbs, that is exactly what I was describing. If I use the Side Heads plugin to set up a job, will my clients get a missing plug-in warning when they open up the INDD? Will roundtripping through INX strip the plugin but leave the text in the callout? (My clients don't care if the logical flow of the story is broken; it's just me.)
I'm just curious; seems like a pretty obvious purchase to me. I'll probably try to script a solution anyways, after I buy the plugin; that way I get to learn about handling anchored objects in scripts AND deliver the job on time! -
Copy paste anchored objects in a table
Hi all!
I must design very often posters with a lot of brands logos (events sponsors) distribuited like anchored objects in the cells of a table.
Very frecuently, the list of brands changes after designed the poster, adding or deleting someones, and then i must replace the logos one by one.
I'm programming a script that moves the content of the cells, making space to the new inserts, or filling the space leaved by brands out. I use the "content" property of the object "cell", and it really works with text (its useful for me in others cases, anyway) but it makes absolutly nothing with the anchored objects.
Somebody have any idea that can help me?
Thanks for your help, and sorry for my english!
JoseOh, and what is very helpful:
The parent of an anchored object is a Character Object.
Example 1:
A text frame with an anchored object (the magenta square).
The text frame is selected.
If you ask for the count of characters in the text frame:
app.selection[0].characters.length;
The answer is "5"!
The anchor, that is indeed the anchored rectangle, is treated as a character.
If you select the anchored object and ask for its parent:
app.selection[0].parent;
The answer is "[object Character]".
To move such an anchored object without loosing its anchordness, you have to move the character.
In the above case, the character is characters[0] of the text frame. Or more precise, the characters[0] of texts[0] (all formatted text in the text frame) of the text frame. You also could go a step backward and say: in this case it's the characters[0] of texts[0] of the parentStory of the text frame
To move it somewhere else (e.g. to a cell of a table), you must move it to another Text object.
Every insertion point is a text object (like every character).
Example 2:
A table comes into play:
The text frame is still selected.
And the following code will move the anchored object (indeed the character) to the table:
var myTextFrame = app.selection[0];
var myTable = myTextFrame.parentStory.tables[0];
myTextFrame.characters[0].move(LocationOptions.AFTER, myTable.cells[0].insertionPoints[0]);
Situation after executing the snippet:
Hope that helps,
Uwe -
Consecutive footnotes within anchored objects
I am working on a long indesign document with footnotes and anchored objects. The anchored objects have both text and graphics within them and some of them have footnotes as well. I’m having trouble figuring out how to make the footnotes within the anchored objects number consecutively with the rest of the footnotes within the text. Can anyone help?
This is a good reason to add voices to request that footnote numbers be accessible to cross-references, so that cross-references to the hidden footnotes update without manual effort.
For those who don't know, the feature request and bug report is here: Adobe - Feature Request/Bug Report Form
HTH
Regards,
Peter
Peter Gold
KnowHow ProServices
[Jongware] wrote:
It's not possible. Footnotes are counted per continuous story; an anchored text frame is not considered part of it.
When I NEED this, I place the footnote ... somewhere else on the page with the anchored object! You can hide the footnote marker by setting its color to [None], and type a regular superscript number inside the box. Pretty lame, and a Little Hell if your text reflows. -
Anchor Objects that go haywire
Hi - we are a small studio that use InDesign CS3 on mainly Intel Mac's and two iMacs (not Intel). Most of our books are educational so they often use icons. To speed up corrections further down the line (when text might be inserted or deleted) we set these up as anchored objects and have even gone so far as to make object styles for the anchored objects offsets. Most of the time this works really well.
The problem we are experiencing now is that while doing corrections to a particularly text heavy academic book (A4, 2 columns) the icons have started to jump all over the place.
As far as I can make out it all started happening when a large heading jumped into the next text frame. The anchored objects all moved down as they should. But when the heading was corrected and brought back into it's box, the anchored icons did not go back to be alongside the text they were with before.
It's almost like the zero point has moved or something. Does anyone know of a global way to fix this? Otherwise we have to go and select each anchored object and clear the overrides. (Did I mention it has a lot of icons!)
Sorry for the long explanation, I hope you can make sense of this and have a quick answer)
EloiseDaniel,
You can always use a copy of the T shirt outline as a Clipping Path for an Object>Clipping Mask.
Otherwise, it depends on the actual artwork; in some cases you may use one of the Pathfinders.
If you have CS5, you should also be able to use Draw Inside.
Edit: Hi Monika. -
Anchor Objects - Purpose?
I used IDCS2 a few years ago for a previous job, and now am using CS4 for a new position at a different company. They have some decent online training for the app, but one of the modules talked about anchored objects.
It's not the technical aspect that's confusing - at least not yet. But I can't figure why this is a feature - how does this actually work in a completed document? Can anyone point me to an example?
Sorry if this is a basic question, but I can't grasp what this functionality is for.An anchored object is any object which is positioned relative to text.
It keeps with specific text when the text reflows.
The uses are many! (i.e. Callouts, graphs, dingbat-type objects,
pictures illustarting specific text, etc.)
Harbs -
Scrollable frames and hyperlinks
hi all!
is it possible to make a scrollable frame content (text only), and place hyperlinks in it?
i've tried several process, but the link doesn't works... any idea?
thanks!Ask here and make sure it's a detailed feature request along with WHY
this would benefit all users.
https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
And note that this is strictly an InDesign limitation so make the
request under InDesign.
Your voice can't hurt and with Creative Cloud, new features can be added
any time. No need to wait for major releases anymore.
InDesign CC will be available tomorrow.
Bob -
I am having trouble with images within scrollable frames. They are taking a while to load and appear white until fully loaded. The images are at the lowest res/size possible already.. Is there anything else I can do to help it load faster?
Thanks for the quick reply. I'm using Folio Builder 12.3.3, Indesign5.5. Mac.
I laid out several pages using the same scrollable frames but out of those about 30%does not function properly. These are simple scrollable frame with a vertical action and I did everything by the book--dimensions and all. I also tried tagging the elements in the Layers panel but had no result. These 30% were working just fine before but as I upload it again and again due to adjustments, it got stuck. My last resort is to create the articles again from scratch but then I may never know what the problem was. -
Hi folks. I have an odd issue I can't find a solution for (obviously), even searching the forums and google. I can select all objects in my drawing, I can see that the bounding has selected all objects - but I can not scale them.
I'm using Adobe CS3, Mac G5 platformDon't forget the Scale tool (S). You can use it whether you use bounding boxes or not.
Double-click on the tool or option-click on the scaling origin to get the dialogue window. -
Anchored Objects Stuck in Text Frame
Hello,
I have updated from CS4 to CS6 and am now having a problem with being able to edit anchored objects from a file that I used to work off of in the CS4 version.
I am working on a catalog that has product assessory boxes that are made up of images and text. In CS4, I created the accessory boxes, grouped all the items and pasted it in the text frame that held the text and photos of other products. I used to be able to edit the text or cut and paste the accessory box out of the text frame it was placed into. Now since I have upgraded to CS6 I cannot edit them at all, when I try to select the box with the selction tool or highlight the text with the type tool nothing will happen. The only thing I can do is hightlight the whole box and cut and paste it into another text frame I create, which doesnt help because I still cannot edit them.
In CS6, I have created an accessory box from scratch, and followed the same process as I have before and I can edit and select like I used to do. The problem only seems to come with the accessory boxes I have created in CS4.
This is a pretty large catalog, and will take a lot of time to recreate all the accessory boxes, so any suggestion to help fix the problem will be greatly appriciated.
Thank you!Long shot, but go to the application preferences and uncheck the box in the General section that says Prevent Selection of Locked Objects.
-
Is it possible to select an anchored object in a text frame in InDesign in a script?
I would like to know if it is possible to write a script to select an anchored object in a text frame. All the scripts I have found so far do not work on anchored object.
Check out this thread.
Maybe you are looking for
-
JMS Sender Channel Error with MQ Series
Hi, I am trying to send a message from MQ Series to XI via JMS Adapter. I am getting this error message, and I have searched the forums for this error message with no luck. Can someone please help? I have asked the BASIS team to double check and m
-
Extra columns in report by pl/sql
Hi, In my application (about wheater data) I need a report with an undefined number of columns. E.g. a user wants data about temperature and wind. Another user may want to see temperature, wind, humidity en may-be more. I've build a collection with t
-
V3.0 freezes changing from source to design view
Is anyone else having this problem? I'm using v3.0 (Build 532 JDK 1.2.2) on Windows 98 with 192MB memory. I start with a new empty project. Go to file, new and add a new Frame. I pick the defaults for Class, Package and Extends and leave everything e
-
My ebank doesn't work on FF 10.0
I updated to FF 10.0 and I've been trying to use my ebank at a Finnish bank called Sampo Pankki. When I open any fillable form, like a new payment, the cursor doesn't start blinking in the fields. I'm still able to write in the fields, but there's no
-
Recently we changed our Lynksys router to an Airport Extreme and now my MacBook Pro running 10.6.8 will not stream radio through Itunes without constantly rebuffering. Any ideas?