Adobe Community
All community
This category
This board
Knowledge base
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results forÂ
ShowÂ
 onlyÂ
|
Search instead forÂ
Did you mean:Â
Global community
Language:
Deutsch
English
Español
Français
Português
日本語コミュニティ
Dedicated community for Japanese speakers
í•œêµ ì»¤ë®¤ë‹ˆí‹°
Dedicated community for Korean speakers
Sign In
Exit
Home
InDesign
Discussions
Re: Removing footnote
Home
InDesign
Discussions
Re: Removing footnote
0
Upvote
Removing footnote
_soni_
New Here
,
/t5/indesign-discussions/removing-footnote/td-p/1144926
Mar 17, 2008
Mar 17, 2008
Copy link to clipboard
Copied
Hi,
I tried following code but the footnotes from indesign are not removed
and Iam getting error
var myDocument = app.activeDocument;
var ftcnt = 0;
for(var s=1; s<=myDocument.stories.count(); s++){
var st = myDocument.stories
;
ftcnt = st.footnotes.count();
for(vat fn=1; fn <= ftcnt; fn++){
st.footnotes[fn].remove();
}
}
TOPICS
Scripting
Views
322
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
3 Replies
3
Jump to latest reply
Peter Kahrel
Community Expert
,
/t5/indesign-discussions/removing-footnote/m-p/1144927#M339437
Mar 17, 2008
Mar 17, 2008
Copy link to clipboard
Copied
You get two errors: one for the use of "vat" instead of "var", and when you fix that, you get an error because you need to remove the notes starting at the end of the document. Use
>for(var fn = ftcnt-1; fn >= 0; fn--)
Peter
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
_soni_
AUTHOR
New Here
,
/t5/indesign-discussions/removing-footnote/m-p/1144928#M339438
Mar 17, 2008
Mar 17, 2008
Copy link to clipboard
Copied
Thanks, Peter on more simple question in the story count loop what shall be the start count 0 or 1
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Peter Kahrel
Community Expert
,
/t5/indesign-discussions/removing-footnote/m-p/1144929#M339439
Mar 17, 2008
Mar 17, 2008
Copy link to clipboard
Copied
LATEST
Ah, yes, that should be 0.
Votes
0
Upvote
Translate
Translate
Report
Report
Follow
Report
More
Reply
Reply
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Post Reply
Preview
Exit Preview
never-displayed
You must be signed in to add attachments
never-displayed
Â
Resources
Learn and Support
Adobe InDesign User Guide
Adobe InDesign Learn and Support
Get Started with InDesign
Adobe InDesign | Common Questions
Work with Photoshop files in InDesign
Resources
Tutorials
InDesign system requirements
What's new InDesign
Newsletters
Crash and Slow Performance
Crash on launch
Slow Performance and Unexpected behaviors
Known issues