Can't set label
In CS2 I used this line
tell application "Adobe InDesign CS2"
set properties of every text frame whose label starts with "dude" to {label:"sweet"} of document 1
end tell
But in CS3 a strange error occurs
tell application "Adobe InDesign CS3"
set properties of every text frame whose label starts with "dude" to {label:"sweet"} of document 1
end tell
Now the weird part is if you just look for page items or text frames that start with label "bla bla" it works perfect but you can't set the label to anything.
Nevermind this fixed it
tell application "Adobe InDesign CS3"
tell document 1
set label of every text frame whose label starts with "dude" to "sweet"
end tell
end tell
Strange I had to dumb down the code for it to work. In CS2 it see the property approach always worked.
Similar Messages
-
Why can't I set label color? I have write permission.
I can't set label color on a particular file, or rename the file, or duplicate the file.
Why not?
I'm in an Admin account.
Get File Info shows that the file is not locked.
Get File Info shows that the file is readable and writeable by my account, by staff, and by everyone.
In Terminal, "ls -l" agrees, showing that the file is readable and writable by user, group, and other.
I have write permission to the containing folder.
Disk Utility's Repair Disk Permissions didn't change the permissions.
What else can I try?Might try BatchMod, it's much better/easier than the Finder for recursive Permission changes, but careful, it's powerful...
http://www.lagentesoft.com/batchmod/index.html
Once open, drop that folder on it's icon, change rights, Apply to all within. -
Can I set the text color in a Label?
Hi everyone ~
Can I set the font color in PP? I only found that there is a "setBackground".. but I want to set the color within a Label.
Thanks!
GaryFixed it!
There was a global style for s|Label and since the Spark button uses one of these for the text, that was it. -
How can I change the margin settings in the pages inspector to make them more specific for label templates. I need margins that can be set to hundreths of a centimetre not just tenths.
I doubt you need hundreths as you would not even be able to measure that and the printer doesn't hold the paper to those tolerances.
fruhulda is right. Pages accepts higher measure but rounds it in the measure field.
If you want absolute accuarcy you need to set your measures to points. Everything else is being recalculated.
Peter -
How can I display labels in the margin on last page
I would like to display a label and a line (for a signature) on the last page of my report at the bottom of the report. This has to be displayed after all the other report details have been displayed and should appear only on the last page. How can I do it? Please help.
You can move the label and the line for the signature into a frame and place the frame at the end of your report. Then set the "Print Object On" property for the frame to Last Page.
-
How can I set a gap in a JTextField, before the active Textfield starts?
Hi,
how can I set a gap in a JTextField, before the active Textfield starts?
I'll avoid, that the input text starts immediately after the border of the JTextField.
Btw, how can I set the height of the JTextField in a BoxLayout?
Thx.
HansYes, that was also my thinking, but nothing happens.
Maybe You have an idea :-)
Thx, Hans
Here a part of my code:
private JPanel createEntry(String label, JTextField jtf, String initJtf, boolean editable) {
jtf.setColumns(15);
if (editable) {
jtf.setEditable(true);
jtf.setBackground(new Color(191, 191, 255));
else {
jtf.setEditable(false);
jtf.setBackground(SystemColor.control);
jtf.setText(initJtf);
jtf.setForeground(Color.black);
jtf.setBorder(BorderFactory.createLoweredBevelBorder());
jtf.setMargin(new Insets(50, 20, 50, 40)); // <- The PROBLEM
JPanel panel = new JPanel();
GridLayout gl = new GridLayout(1, 2);
gl.setHgap(1);
panel.setLayout(gl);
panel.add(BxpCdmUtils.Utils.createLabel(label, Color.darkGray, Font.BOLD, 11));
panel.add(jtf);
JPanel superpanel = new JPanel();
superpanel.setLayout(new BoxLayout(superpanel, BoxLayout.X_AXIS));
superpanel.add(panel);
superpanel.add(new JLabel(" "));
return superpanel;
} -
Can't Change Labels for Properties
I Can't Change Labels for predefine Properties
or Custom Properties.
I had done it with this:
http://help.sap.com/saphelp_erp2004/helpdata/en/65/6fc63ed4027f6be10000000a114084/frameset.htm
I just followed what the help said.
but i can't see any change for my label of Properties.
I had done it as follow steps.Please help me to
Check if i miss some steps!
1,I creat .properties files
mylabels.properties
in this properties file i creat a key
modified=date
mylabels_zh_CN.properties
in this properties file i creat a key
modified=u66F4u65B0u65E5u671F
2,I made a jar file use the two .properties files
named mybunding.jar
3,I copy this jar file to
.../j2ee/cluster/server<n>/apps/sap.com/irj/servlet_jsp/irj/root/web-inf/portal/portalapps/com.sap.km.common.resourcebundle/lib
4, Create a new metadata extension under Content Management -> Global Services -> Property Metadata -> Metadata Extensions.
named it my_metadatae_extension
set Bundle File=com.sap.km.common.resourcebundle.mybunding.mylabels
5,restart the servlet engine,
6 in the key for label of the properties
i set modified the key i creat in step 1.
when i display the properties it still didn,t display
my created lable.
How should i do? any step i miss? or any better solution
for the lable?
Please help me ,
BestRegards
HanHi Han,
here my corrections:
1.
I would use the filename "mylabels_cn.properties" and not "mylabels_zh_CN.properties"
2.&3.
This is the SP2 way for using the bundle files for properties. For NetWeaver you need to create a new PAR-file with the bundle file including the labels and translations as described <a href="http://help.sap.com/saphelp_nw04/helpdata/en/65/6fc63ed4027f6be10000000a114084/frameset.htm">here</a>.
It's very easy if you use the example PAR file provided by SAP in SAP Note 817876, as mentioned in the referenced link (Prerequisites section).
Read carefully the process in the link and try again. If you still experience problems, come back with the new detailed description.
Hope this helps,
Robert -
Tab Set Label Colors - How do I change the selected tab label color?
No matter what color I tell it to use for the Labels - Selected color I get white. Is this a known bug in the system or am I not doing something correct. I have a tab set component and a label based menu selector component on my display. I've set up the labels and backgrounds for both components exactly the same but I can only get white for the selected tab set label.
Edited by: Maureen LaComb on Feb 19, 2009 5:38 PMHi, Maureen
You can set the color of Tab Set by using the Following Steps.
--> Select the Tab Set
--> From the the Properties Window
--> Select Appearance
--> There are Two Tabs "Text" and "Color"
--> From the Color Tab you can Select the Background Color
--> Tab BackGrounds Or Labels from here you can select the color.
But this setting will Apply to all the Tabs in a Tab Set, I think you can't set the Specific Setting for a single Tab in a Tab Set.
Please Reply if any Issue,
Kind Regards,
Faisal -
How to Set label of a button in arabic by writting code.
Hi,
I have created a button by writtin following code in controller.
OAButtonBean oasb = (OAButtonBean)createWebBean(oapagecontext, OAWebBeanConstants.BUTTON_BEAN, null, "Add");
if ( oapagecontext.getCurrentLanguage().equals("US"))
oasb.setText("Add Previous Objectives");;
else
oasb.setText("إضافة أهداف المرحلة السابقة");
Its creating a button with the given label. When i check from english login it shows label as "Add Previous Objectives" But when i check the same from arabic login it shows "???????????????"
Please suggest me how can i set arabic text for the same button.
Thanks in advance
MuraliHi Murali,
It seems that the problem is with your browser where you are running your page. Check that the Arabic font is installed on your web browser and your system.
Regards,
Amit Kr. Singh -
I've noticed when playing with setting labels, there are certain files where the option to set a label is greyed out.. I was wondering if this is normal, or something odd? Is there a fix or what can I do so I have access to working with my computer.. I am the admin on here, and the only one using this computer.
Have you tried to right click on the Google Drive you want to remove and select Remove from Sidebar? If that doesn't work, try left click and hold and drag it off the Sidebar.
-
How can i set the space between two button?
Hello,
I have
<mx:HBox>
<mx:Button label="one" />
<mx:Button label="two" />
</mx:HBox>
how can i set the distance between this two compotents?
Thanksquote:
Originally posted by:
robinbouc77
Hi,
you can use horizontalGap property on HBox to change the
space between your buttons. I think the default value is 6. You can
also use <mx:Spacer/>, but changing the gap on HBox is
probably the cleanest way ;)
C U
perfect!!! works fine -
Can we set h:outputText value= "(some javascript function value)"/
Hi
Can we set <h:outputText value= "(some javascript function value)"/>
In a scenario like when user changes the item in dropdown box. label name as to change for the next text box.
-----JSP page------
h:outputText value="*" styleClass="mandatoryField" />
<h:outputText value="Matching Criteria:" />
<h:selectOneMenu id="MatchingCriteria" styleClass="dropDownMenu" value="#{OffsetTradingRuleBean.matchingCriteria}"immediate="true" onchange="unitChange()">
<f:selectItems value="#{OffsetTradingRuleBean.matchingCriteriaMap}"/>
</h:selectOneMenu>
<h:outputText value=""></h:outputText>
<h:outputText value=""></h:outputText>
<h:outputText id="DeminimisLabel" value="" ></h:outputText>
<h:inputText id="DeMinimisUnit" styleClass="text" value="#{OffsetTradingRuleBean.deMinimisUnit}" maxlength="15" onchange="detectChange()" >
<f:validator validatorId="DefaultValidator"/>
</h:inputText>
<h:outputText value=""></h:outputText>
-----Java Script-----
function unitChange(){
if(document.getElementById("frm:MatchingCriteria").value!="1"){
alert('inside unitchange--'+document.getElementById("frm:MatchingCriteria").value)
document.getElementById("frm:DeminimisLabel").value="Deminimis Dollars";
if(document.getElementById("frm:MatchingCriteria").value!="0"){
document.getElementById("frm:DeminimisLabel").value="Deminimis Shares";
thanks in advance
Rambhapuribalu
actually i want to swap label name using javascript. first i will call onchange event from matching criteria dropdown box . then it will fire unitChange() function.
then i am putting value Deminimis dollor or deminimis shares accroiding to the value which is there in dropdown.
this value as to come in <h:outputText id="deminimisLabel" value=" should come value from java script" />
and it should act dynamically ,. like when ever user changes the dropdown item . the corresponding name should change in lable name.
thanks
rambhapuri -
Set label colour to files in loop.
This Script works in part to open a folder select the image to create a text document of the files, at the same time I would like to label them as red.
set myFile to (Macintosh HD:Users:Matt:Desktop:
SelectedImages.txt")
open for access file myFile with write permission
set eof file myFile to 0
set resultFiles to (choose file with prompt "Choose Files" with multiple selections allowed)
set tc to (count resultFiles)
repeat with i from 1 to tc
set theNfile to (item i of resultFiles) & return
write ((theNfile as list) as text) to file myFile
log theNfile
tell application "Finder"
set label index of file (theNfile as text) to 2 --red
end tell
end repeat
close access file myFile
My end result is this
Result:
error "Finder got an error: Can’t set file \"Macintosh HD:Users:User:Desktop:Bits and bobs:DP GOOD:Untitled1.psd
\" to 2." number -10006 from file "Macintosh HD:Users:User:Desktop:Bits and bobs:DP GOOD:Untitled1.psd
yet run the line below on its own and it has no problems?
tell application "Finder" to set label index of file "StudioA:Users:StudioA:Desktop:Bits and bobs:DP GOOD:Untitled1.psd" to 2Hello
Error -4960 is a generic error that tells little about what is wrong.
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/MacErrors.h: coreFoundationUnknownErr = -4960
Fortunately I can reproduce this error when I pass HFS path instead of POSIX path to the write_to_file() handler. So I guess you're doing it as well by replacing:
my write_to_file("", myFile's POSIX path, {_append:false, _class:«class utf8»})
with:
my write_to_file("", myFile, {_append:false, _class:«class utf8»})
when myFile is HFS path.
If myFile is HFS path and the file at the path already exists, you may call the handler like this:
my write_to_file("", (myFile as alias)'s POSIX path, {_append:false, _class:«class utf8»})
If myFile does not exist yet, the above won't work because (myFile as alias) fails. In such case, you'd need to build myFile as POSIX path from the beginning.
Having that said, here's a revised handler that seems to work with both HFS path and POSIX path under 10.6.8 although it does NOT conform to the definition of "open for access" and "close access" commands in OSAX dictionary. I do not like this sort of loose coding in undocumented way, but if it works for you and you're fine with the looseness, you may use it with due caution.
on write_to_file(x, p, {_append:_append, _class:_class})
anything x : anything to be written to output file
string p : POSIX path or HFS path of output file
boolean _append: true to append data, false to replace data
type class _class: type class as which the data is written
local fd
try
set fd to open for access (p) with write permission
if not _append then set eof fd to 0
write x as _class to fd starting at eof
close access fd
on error errs number errn
try
close access (p)
end try
error "write_to_file(): " & errs number errn
end try
end write_to_file
Good luck,
H -
can I set up 2 email accounts on my iPad - one from which to send and receive and one to send from only ?
YEs, you can have multiple E-Mail addresses. Just add the additional accounts through the Settings -> Mail, Contacts & Calendars.
If you also change the mail settings "Show To/CC Label" to ON you can change the sending E-Mail server. You can also set the default account in there also, one more section down in the same E-Mail Settings section. -
HELP !!! How can I set the size of each component separately
Please tell me, when adding components (a mix of
labels , buttons etc.) on a container (swing), how can I set the size
of each component separately.
for example:
the code here has a mix of button and a grid that is actually another JPanel. Its a part of a bigger
program. When running the grid is cut (not seen in its full size).
So, please try to anser also about the specific acse of frame contining another frame in it , and the interior should be right sized.
The relevant part of the code:
=========================================
public class Reversi extends JFrame {
public static void main(String[] args) {
Reversi ourGame = new Reversi();
public Reversi() {
super("Grid Reversi");
setSize(new Dimension(300, 300));
setDefaultCloseOperation(EXIT_ON_CLOSE);
Grid g = new Grid(); // the grid was built at another part..
ReversiGame ourGame = new ReversiGame();
JButton b;
JFrame f = new JFrame("Hello Java");
f.setSize(new Dimension(300, 300));
f.setDefaultCloseOperation(EXIT_ON_CLOSE);
Container c = f.getContentPane();
c.add(g,BorderLayout.NORTH );
c.add(b = new JButton("Hola"), BorderLayout.CENTER);
//f.pack();
f.show();BorderLayout chooses the sizes of each of the components added to it. Choose a different layout manager (or set the placement/size manually with a 'null' layout)
http://java.sun.com/developer/onlineTraining/GUI/AWTLayoutMgr/shortcourse.html
Maybe you are looking for
-
Audio is not showing up in the browser nor the timeline???
i have a question. i recorded a video and viewed it and the video and audio is working. when i imported it and it showed up on the browser the audio outputs were not showing up. also when i tried to dragged it to the timeline the audio tracks didnt s
-
Presort Matching Freight Load Plan (Drop Ship)
We had a consolidator optimize a job that I ran as all origin entry (sent them mail.dat files). The job was originally palletized with 72 pallets and only 16 loose pieces. Their optimization to BMC/SCF Drop shipment involved entire pallets only to
-
Hi, The concept of costing in projcet system which i understood is as follow 1.We create project profile in OPSA and under organisation tab page we assign the plant to the profile, which means we can use this profile for the specified plant. 2. We ha
-
Export problem: The file is split four ways!
Hi, I've been trying to export my 40 min long movie into the normal export, just by clicking export>quicktime movie and export it to a external hard drive. I usually do this and then compress it outside. But this time, I ended up with Four files: 1 2
-
hi, when trying to replace the boring folder icon with a .jpeg image, sometimes you get the image, but most of the time you get the file name displayed any ideas how i can get round this ? thanks