Table Script Label
Hi,
I'm new to indesign scripting and am using javascript / extendscript. I paginate a document and get an array of all tables in the paginated document using
var myTables = myDoc.stories.everyItem().tables.everyItem().getElements();
I then walk through them in a for loop one by one conditionally applying a block of code.
I need to make it a little smarter and apply different blocks of code depending on the script label. I'd like to be able to:
if(myTables[i].label=="1") {.... do this code ....}
else if(myTables[i].label=="2") {... do this code ...}
The problem is it appears I can assign a script label to the text frame the table sits in, but not the table itself. If that's correct, is there an easy way for me to get the tables text frame's script label from the array element (myTables[i]) I'm currently sitting on in my loop?
Please speak slowly or it's likely to fly right by me
Thanks,
David
Actually, you CAN assign a script label to a table, either through scripting or in the InDesign UI. The UI methods are arguably a bit obscure ... see for example http://www.peachpit.com/articles/article.aspx?p=415190&seqNum=13 for a description.
Similar Messages
-
Script Label feature exhibits unexpected behavior. Is it a bug?
If I create a table, select a cell on any row, apply a Script Label (using Window -> Utilities -> Script Label), and then insert a new row above or below it, the new row will have the same script label in the same column. I can't imagine this being by design so it sounds like a bug.
Has anyone else encountered this? If so, have you implemented any workarounds? I'm thinking I might have to write a post-insertion process to detect when a row is created and remove all the script labels for that row, but that seems like a lot of work. I'd have to check all the rows in the table, because if I insert multiple rows in one operation, they all inherit the original row's script labels.
I'm using the CC2014 SDK, but I wouldn't be surprised if this occurs on all versions.
Thanks for any feedback.
BobI can reproduce it as well. Feels like a bug...
Locking the variable for read in code has the same effect:
public void Main()
// Lock variable for read
Dts.VariableDispenser.LockForRead("User::myStringVariable");
// Create a variables 'container' to store variables
Variables vars = null;
// Add variable from the VariableDispenser to the variables 'container'
Dts.VariableDispenser.GetVariables(ref vars);
// Now try giving it a new name
vars["User::myStringVariable"].Value = "new value";
// Release the locks
vars.Unlock();
Dts.TaskResult = (int)ScriptResults.Success;
For reference:
https://connect.microsoft.com/SQLServer/Feedback/Details/991697
Please mark the post as answered if it answers your question | My SSIS Blog:
http://microsoft-ssis.blogspot.com |
Twitter -
Script label inside of continuous text?
Hi there,
is there a way to add meta data to the content of text boxes or table cells?
I've seen, that this is possible on text/picture boxes with script labels.
The problem I have is, that I need something to identify different text strings inside of a text box.
Any idea?
Best regards,
TYPO... using "Tags" was my first intention, as I would like to use them for formatting the content of my textboxes.
Unfortunately I haven't found anything about "custom" tags (in order to reference strings) in my InDesign Tagged Text manual.
Can you point me to some reference / manuals / literature?
Thanx in advance! -
Script Label insert into FileName
Any help would be greatly appreciated!
This is a portion of "PageExporterUtility5.0.js" that I'm tailoring to use at our workplace. Finding a simple description of how to use the "Script Label" is stumping me. How would you modify the following to work? My InDesign document has a Text Frame that I'd like to utilize the text contents in the filename. The text frame has been identified with a "Script Label" called "DOC_SIZE". An example of the text contents would be "18X24" (which is not the actual page size, just a rough description is needed).
Current Base Name:
816069-OHI-none-none.indd
Export Name:
816069_18X24_"Output Directory".eps
w/ the Output Directory, I'd like to use the Folder Name, not the full path.
These are the revalent sections of the script identifying the "outFile" Name.
VAR SETUP
for(currentDoc = 0; currentDoc < peuINFO.numDocsToExport; currentDoc++) {
var tempENTRY = getNewTempENTRY();
tempENTRY.theDoc = app.documents[currentDoc]
tempENTRY.singlePage = (tempENTRY.theDoc.documentPreferences.pagesPerDocument==1)?true:false;
tempENTRY.getOut = true;
var baseName = (tempENTRY.theDoc.name.split(".ind"))[0];
var baseName = baseName.replace(/-OHI-none-none/g, "")
MIDDLE
else{
currentINFO.outfileName = currentINFO.baseName;
exportPage(currentINFO, PageRange.allPages);
EXPORT PORTION
case 2:
app.epsExportPreferences.pageRange = pgRange;
currentINFO.theDoc.exportFile(ExportFormat.epsType, (new File(outFile + ".eps")), false);If the problem is getting the text contents of your labeled box, try something like this:
var docsizeBoxes = new Array;
for (var i = 0; i < app.activeWindow.activePage.textFrames.length; i++) {
if (app.activeWindow.activePage.textFrames[i].label == "DOC_SIZE") {
docsizeBoxes.push(app.activeWindow.activePage.textFrames[i]);
break; }
var docsizeString = app.activeWindow.activePage.textFrames[i].contents;
You should now be able to use docsizeString in parsing out the name of the output file. This assumes that there will be one and only one text frame labeled "DOC_SIZE" on the active page. So you might need some error checking.
If it were me, though, I'd just get the actual pageWidth and pageHeight from documentPreferences and use them. In my place, we don't have too many doc sizes to choose from. -
Script Labels Not Working In CC
Any time I attempt to edit a script label in InDesign CC, the change is not applied. Clicking off the element results in anything typed being erased. This was a persistent problem for us in CS5 (hitting tab after entering the content made it stick), but was completely resolved in CS6, but is back rearing its ugly head in CC.
Have you tried searching the forum? There have been several questions regarding this.
Searching has changed between CS2 and CS4.
Try putting the script in folder: Applications/Adobe InDesign/Scripts/Scripts Panel/Version 4.0 Scripts -
In which table scripts and smartforms are stored
in which tables scripts and smartforms are stored
eg scripts in tadir.Hi this may be of some help.
SD
SALES ORDER/ENQUIRY/QUOTATION
Output type : BA00
ScriptForm Name : RVORDER01
Driver Program Name : RVADOR01
smartform name
DELIVERY NOTE
Output type : LD00
ScriptForm Name : RVDELNOTE
Driver Program Name : RVADDN01
smartform name : LE_SHP_DELNOTE
Smartform Driver Pgm: RLE_DELNOTE
INVOICE
Output type : RD00
ScriptForm Name : RVINVOICE01
Driver Program Name : RVADIN01
smartform name : LB_BIL_INVOICE
Smartform Driver Pgm: RLB_INVOICE
MM
PUCHASE ORDER/RFQ/CONTRACT
Output type : NEU
ScriptForm Name : MEDRUCK
Driver Program Name : SAPMF06P
smartform name : /SMB40/MMPO_L
smartform driver program: /SMB40/FM06P
GOODS RECEIPT
Output type : WE01
ScriptForm Name : WESCHEINVERS1
smartform name : /SMB40/MMGR1_A
smartform driver program: /SMB40/M07DR
GOODS ISSUE
Output type : WA01
ScriptForm Name : WA_SCHEINVERS1
smartform name : /SMB40/MMGI1_A
smartform driver program: /SMB40/M07DR
FI Forms
Account Statement : F140_ACC_STAT_01
Cheque Printing : F110_PRENUM_CHEK
Balance Confirmation: F130_confirm_01
Dunning Form: F150_DUNN_01
check the link below it provides steps to convert sap scripts to smartforms
http://www.ficoexpertonline.com/downloads/Iyer_SmartForms.pdf
SMARTFORMS -Driver Program
PO: /SMB40/FM06P
SO: /SMB40/RVADOR01
GR: /SMB40/M07DR
with regards,
Hema Sundara.
pls give points if u find this helpful. -
[CS3 JS] Getting a page item by its script label
I have a text frame on a master page with its script label set. In my script, I am trying to get a reference to the text frame with this:
var doc = app.activeDocument;
var spread = doc.masterSpreads[0];
var tabFrame = spread.allPageItems.item("TabLeft");
I get the error "spread.allPageItems.item is not a function"
Any help will be appreciated. Thanks.
RickHi Rick,
spread.allPageItems returns a flattened array of all of the page items in the spread, at any level of the hierarchy (i.e., inside groups and other page items). Is that what you want? Sadly, allPageItems does not benefit from the special case where we use the label as a name, so you'll have to iterate if that's what you want.
As Peter says (thanks, Peter!), spread.pageItems.item("label") gives you all of the page items whose label matches the string, but it does so in sort of a weird way--you'll always get a page item object. If no page items match, you get an invalid page item; if one matched, you get a single page item, and if multiple page items matched, you get a page item object that actually contains multiple page items. It can take a little testing to figure out exactly what it is that was returned.
Thanks,
Ole -
How to enable the script label of a text frames in indesign using applescript
hi all,
am using Indesign CS2 with applescript..
Using script I have to open a template in indesign and flow the word document into it...
I can able to flow the word document into the template using "Place" command..but script labels of the text frames gets disabled...
I need the script labels to be enabled...
can anybody help me
thanks in advanceScript labels can't be disabled, so I'm not sure what your problem is -- perhaps seeing some code could help. Could it be that you're referencing a page item by label, but it is not responding because the item is part of a group?
Shane Stanley <[email protected]>
AppleScript Pro Sessions <http://scriptingmatters.com/aspro> -
[AS] Script Label Items in a Group
Hi all,
I have a group of shapes that, when grouped together in Indesign, form an object. This grouped object is script labeled "special". I am trying to script label each of the individual parts of this grouped object "special" so that if users ever mistakenly ungroup the object, I can still manipulate all items with the "special" label...which is effectively my original grouped object.
The catch is that I need to do this labeling with a script because I have thousands and thousands of files I'm working with. I'd love it if something like this worked (but it doesn't):
tell application "Adobe InDesign CS3"
set theObject to page item "special" of document 1
set theShapes to every page item of all page items of theObject
set label of theShapes to "special"
end tell
The problem I keep running into is that it seems when an object is grouped, all the objects inside that group become, for all practical purposes, invisible. The line "set theshapes to every page item of all page items of theObject" returns an empty list "{ }" as though there ARE no items making up the group.
So then I thought I'd take a more tactile approach. Select it, ungroup it, label it, group it back:
tell application "Adobe InDesign CS3"
set theObject to page item "special" of document 1
select theObject
ungroup selection
set label of selection to "special"
group selection
end tell
The problem with this approach is that after ungrouping the object with a script, there is no longer a selection as there is when doing the same by hand, so trying to set the label of a selection that does not exist produces an error. Grrrrr.
Friends, I know this can be done, but I need a little outside perspective on this to help me figure this one out. As always, thanks in advance for your help!OK. Got it working but I'm not sure why. I went back to the bigger script of which the below is a part. And it works fine. I just don't understand why.
tell application "Adobe InDesign CS4"
activate
set myDocument to active document
set myPage to page pageNum of myDocument
set active page of layout window 1 to myPage
if not (exists library "Logowear_Lib.indl") then
set theFile to open tagsLib
end if
set assetPlacer to item 1 of (place asset asset "3_12:13" of library "Logowear_Lib.indl" on myDocument)
move assetPlacer to myPage
move assetPlacer to myCoordinates
set color_code_counter to 5
set color_box_counter to 1
tell myDocument
repeat color_counter times
set theColorCode to item color_code_counter of Style_List
set oldLabelName to ("CW" & color_box_counter)
set newLabelName to my makeImageName(theSap, theColorCode)
set label of (object reference of every item of all page items of page pageNum of myDocument whose label = oldLabelName) to newLabelName
set color_code_counter to (color_code_counter + 2)
set color_box_counter to (color_box_counter + 1)
end repeat
end tell
end tell -
Duplicate script label warning into preflight panel - possible?
Hello!
Duplicate script labels are creating problems for us.They occur when our graphic designers copy a picture box and forget to change the script label, resulting in two identical images - if the indesign document is closed - and reopened.
Is there any way to either provide a warning for duplicate script labels, and/or a insert duplicate script label-warning in the preflight panel?Hi Hans,
Thanks for that suggestion.Simple and affective.
Cheers!
Date: Fri, 22 Mar 2013 01:07:21 -0700
From: [email protected]
To: [email protected]
Subject: Indesign script for locating metadata in images
Re: Indesign script for locating metadata in images
created by -hans- in InDesign Scripting - View the full discussion
Why scripting¿ http://forums.adobe.com/servlet/JiveServlet/downloadImage/2-5169242-310155/450-213/Copyrig ht.png
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5169242#5169242
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5169242#5169242
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5169242#5169242. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in InDesign Scripting by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
Getting table script using dbms_metadata.get_ddl, but with clob field
So, Oracle 11g R2..
I'm using dbms_metadata.get_ddl to get table scripts and it's working fine..
now, I have a table with clob field, and it's not working... I got an 'missing right parenthesis (ora-0907)' error...
I could paste a script that I got, but I don't think it makes any sense..
does anybody have some experience on using this package on clob tables?
tnxthis is script that I got... it's long, and it looks like it's not good
CREATE TABLE "COMMON"."TEST_AAA2"
( "ID" NUMBER(10,0),
"TEKST" VARCHAR2(200 CHAR),
"UPDATESTAMP" DATE,
"OBJEKAT" CLOB,
CONSTRAINT "TEST_PART_PK2" PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "USERS"
ALTER INDEX "COMMON"."TEST_PART_PK2" UNUSABLE ENABLE
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_DATA"
LOB ("OBJEKAT") STORE AS BASICFILE (
ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
NOCACHE LOGGING
STORAGE(
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT))
PARTITION BY RANGE ("UPDATESTAMP")
(PARTITION "P_201012" VALUES LESS THAN (TO_DATE(' 2011-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_DATA"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_201101" VALUES LESS THAN (TO_DATE(' 2011-02-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_DATA"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_201102" VALUES LESS THAN (TO_DATE(' 2011-03-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_ARCHIVE"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "COMMON_ARCHIVE" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_201103" VALUES LESS THAN (TO_DATE(' 2011-04-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_DATA"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_201104" VALUES LESS THAN (TO_DATE(' 2011-05-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_ARCHIVE"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "COMMON_ARCHIVE" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_201105" VALUES LESS THAN (TO_DATE(' 2011-06-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_DATA"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "USERS" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_201106" VALUES LESS THAN (TO_DATE(' 2011-07-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_ARCHIVE"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "COMMON_ARCHIVE" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_201107" VALUES LESS THAN (TO_DATE(' 2011-08-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_DATA"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "COMMON_ARCHIVE" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ,
PARTITION "P_MAXVALUE" VALUES LESS THAN (MAXVALUE)
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
TABLESPACE "COMMON_DATA"
LOB ("OBJEKAT") STORE AS BASICFILE (
TABLESPACE "COMMON_ARCHIVE" ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10
NOCACHE LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) NOCOMPRESS ) -
Script label: Set and get it?
Hi
How can I set and get the script label of a frame in my plugin?
Thanks for the help.
Best regards
HansHi,<br /><br />the IScript-Interface has a GetTag() and SetTag() method. While GetTag() is fine, you'll get Asserts when using SetTag() - thus I changed that to processing kSetScriptingTagCmdBoss.<br /><br />Example (script-label on a splineitem, stripped of nil-pointer-checks):<br /><br />InterfacePtr<IScript> script(itemRef, UseDefaultIID()); <br />PMString label = script->GetTag();<br />ScriptList scriptList.push_back(script);<br />InterfacePtr<IScriptManager>scriptMgr(Utils<IScriptUtils>()->QueryScriptManager(kScript TagMgrBoss));<br />InterfacePtr<ICommand> cmd( CmdUtils::CreateCommand(kSetScriptingTagCmdBoss));<br />InterfacePtr<IScriptTagCmdData> scriptTagData(cmd, UseDefaultIID());<br />scriptTagData->SetScriptList(scriptList, scriptMgr->GetRequestContext(), label);<br />cmd->SetItemList(UIDList(itemRef));<br />ErrorCode err = CmdUtils::ProcessCommand(cmd);<br /><br />Regards,<br /><br />Bernt
-
Hi all,
I would be thanks you and greatful if someone can help me to create a table script.
I have an XML file with PK and FK relationship.
I also have a DTD file.
I want to create tables in Oracle Database from XML or DTD file.
Thanks in Advance
SaazYou might want to take a look at registerSchema (http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_xmlsch.htm#sthref9696) with genTables set to TRUE. This would let you use the DTD to create a table structure within Oracle. This may or may not be what you are looking for but you didn't provide many details.
That's 10.2 documentation so use the edition for your version of Oracle -
Listing (for further action) all page items that have a certain script label
hello from France,
Well the question is essentially in the subject line: how to find and work on all page items of a document (or a page/spread) that have the same script label (or better: whose script label contain the same word)?
I tried some variations around something like that, with no results:
set list_pageitems to every page item of page i whose label is "product"
Any clues?
Thanks for your help
VincentI found the answer (for those who might be interested), but still have a question (for those who know).
The solution:
set list_pageitems to page item "product" of page i
If you want to do it for a whose document (in may case, deleting some page items):
delete page item "product" of document 1
Strange syntax but it works :-)
The remaining question:
How to find page items whose label contains a certain string: it would be like selecting page items by tags (every word of the script label would be considered as a tag)?
Thanks -
View all script labels and find an object by its script label
Hello,
I have an InDesign document in which many objects get a script label. I know how to view and edit the script label of an object, but is it possible to:
1 - See a list of all the script labels of the document (as can be done with the styles for example)?
2 - Search an object in the document by its script label?If you are using OSX this AppleScript displays a list of document labels:
global labels
set labels to []
tell application "Adobe InDesign CS6"
set x to every page item of active document
repeat with i in x
if class of i is group then
my checkGroup(i)
else
my getLabel(i)
end if
end repeat
display dialog labels as string
end tell
on checkGroup(g)
tell application "Adobe InDesign CS6"
set gi to all page items of g
repeat with a in gi
if class of a is group then
my checkGroup(a)
else
my getLabel(a)
end if
end repeat
end tell
end checkGroup
on getLabel(pageitem)
tell application "Adobe InDesign CS6"
if label of pageitem is not "" and label of pageitem is not in labels then
set labels to labels & label of pageitem
end if
end tell
end getLabel
Maybe you are looking for
-
Store refusing to combine multiple BB gift cards into one
Hi, I have few egift cards which can be used in-store or online. I want to combine them into one to keep track easily. I went to BB store in Milpitas CA, and the store manager rudely told me that I can't combine gift cards. Please let me know if I co
-
Inserting strings in a database
Hello all! I am trying to insert string values in a database with this metode. public void insertData(){ try{ String url = "jdbc:odbc":"+database; Connection connection = DriverManager.getConnection(url, user, password); Statement status = con
-
From where can we get some more documents in xml publisher i.e more than the help file present in the xml publisher. If Anyone have the document please help
-
Output video in the radio remote?
Anybody know if is posible to connect video cable to the headphones output of radio remote for watch ipod on tv?
-
Sync problem with iTunes 10.6
I've updated my iTunes to 10.6. Since then, it won't sync with my iPod 4G! It says "Waiting for sync to start" but suddenly it will just stop and nothing will happen! Sometimes it'll back up my iPod, and sometimes it'll stop in determining apps to sy