Create Styles... and then the nesting styles
Seems simple enough:
say application "Adobe InDesign CS5.5.
say active document
put myCharacterStyle to do style of characters with properties {name: 'Year', size: 26.0, fill color: 'Paper', race color: 'Black', race weight: 0.75, fonts: "Helvetica" font style: "Black"}
put myCharacterStyle to do style of characters with properties {name: "Years", size: 18.0, fill color: 'Black', line color:nothing, weight:race nothing, horizontal scale: 80.0, vertical scale: 80.0, fonts: "Helvetica", font style: "Black"}
put myParagraphStyle to do paragraph style with property {name: 'Year'}
put nested styles of myParagraphStyle to {{applied the character style: 'Year', rehearsal: 1, false inclusive: delimiter:any word}, {applied the character style: "Years", rehearsal: 2, inclusive true: delimiter:any word}}
end tell
end tell
The police and the point size do not come through when the style is created. Nested styles are not as through.
I tried the applied policies: "Helvetica" to get "font family is not available. Also: font 'Helvetica '...
What I get just now I is no defined font or size. The rest works.
So what I'm doing wrong here?
Hi lithodora.
as Mary Posner wrote a character style has the property 'do', but 'applied police' and 'make-style ".
«... specified as font family name or an object are.»
just look it up in the dictionary...
Always try to work with references.
Tell application "Adobe InDesign CS5.5"
-You need to myHelvetica your needs!
Set myHelveticas to (font family of each font whose name contains "Helvetica") - returns the helvetica font family names
myHelvetica defined in article 1 of the myHelveticas - just choose randomly one for my example, in the hope there is a 'black' style ;-)...
tell the active document
myCharacterStyle01 to style character with the properties the value {name: 'test', size: 26.0, fill color: 'Paper', race color: 'Black', accident stroke weight: 0.75, applied the police: myHelvetica, font style: "Black"}
myCharacterStyle02 to style character with the property value {name: 'tests', size: 18.0, fill color: 'Black', race color: nothing, stroke cerebral weight: nothing, horizontal scale: 80.0 vertical scale: 80.0, applied the police: myHelvetica, font style: "Black"}
myParagraphStyle to style of paragraph with the properties the value {name: 'nextTest'}
say myParagraphStyle
do new style nested with properties {applied the character style: myCharacterStyle01, repetition: 1, included: false, delimiter: any word}
do new style nested with properties {applied the character style: myCharacterStyle02, repeat: 2, inclusively: true, delimiter: any word}
tell the end
tell the end
tell the end
Tags: InDesign
Similar Questions
-
What happens when the photo of system library is on an external drive and then the system creates a library of Photos? How do merge you them?
Your library system can be on an external drive, if the drive is Mac OS extended (journaled) format and mounted on-site.
But you must be careful, your external drive is always connected and available before the Photos and to import new photos.
If Photos opens a different library, news, you can switch to the library on your external drive by double clicking on an external library. You can have several libraries, no problem.
But pictures don't have any tools to merge libraries. You can switch between libraries, then open them alternately. To merge two libraries export the photos of the smallest library and import the photos exported in the largest library.
Or use third-party "PowerPhotos" to move photos between libraries. But the merger is not supported in the free trial version. You must purchase the full version. You can download it here: Fat Cat Software
-
I'm living in a college dorm and only have access to the internet via a hard line to my computer. So I wanted to give my other accessibility of consumer electronics set up an Ad-Hoc network and share the internet connection. When I originally set up the network it works fine, but after the devices go to sleep or I leave the room it stops working. I had problems to keep the internet connection to share continually, which I fixed it. I then had a DHCP problem with the hard line that has been resolved through troubleshooting function. Now, even if the network is active and is connected to the internet my devices cannot connect and then the network shuts down.
Is there a way to create an Ad Hoc network that works similar to a wireless router, so when my computer is turned, it works automatically? If so, how can I make this happen without these problems?
Hello
I suggest to activate temporarily the antivirus as well as windows firewall and check if it helps.
Important note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.
Disable the anti-virus software
http://Windows.Microsoft.com/en-us/Windows7/disable-antivirus-software
Enable or disable Windows Firewall
http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-Firewall-on-or-off
For reference:
Set up a computer-to-computer (ad hoc) network
http://Windows.Microsoft.com/en-us/Windows7/set-up-a-computer-to-computer-ad-hoc-network
Note: The notes section through the link above.
-
I had a file disappear from creative cloud and then the name get reassigned to another file.
I had a file disappear from creative cloud and then the name get reassigned to another file. How to recover the missing file?
If a file with the same name is saved again and then a version is created. You can see the versions of the files page to https://creative.adobe.com/files. Of the files page , click on the file to access his page. Pass on the Details tab in the activity tab if necessary. You will see the current Version and all previous versions.
-
My new Hp spectrum 12 2 - 1 m7 detachable worked well the first four time I turned it on. Then I put in Google Chrome and it gave me the blue screen of death... I rebooted and then the mouse started working funny or the screen does nothing. I finally took the screen to uninstall Google Chrome, which really didn't help. If I get a black screen with a lit keyboard and sometimes I can get the screen but the mouse is pointing upwards. Help, please.
You may have a hardware problem that appeared to be connected to Chrome install. You have a 1 year warranty. > >Contact HP
-
I want to play a full album, but no matter the song of the witch I start on after it is made to play this song it jumps to the next album (by the artist). and then the next album, I want to hear played very well. Shuffle seems to be disabled. Jump then dragging seems to be disabled. Not only this one album. It seems to do that. Thanks for your help. -Nick
Select all the tracks in the album. -Click right/option. Click check selection on the shortcut menu.
TT2
-
HELP me get my E mail.
When I turn on my emachine and try to check my e-mail, I get my homepage to google for about 1 second and then the screen turns white with bee.pl.
http://INFOTEP.bee.pl/info.php?avted=; I'm not that day on computers, and many of their functions and a few times I get a little lost in there so if anyone can help me I really appreciate it. Thank you!!!
Hello
1. what operating system do you use?
2. What mail client do you use?
3. you have made any changes to your
4. what site you're talking about?
5. How do you access the webpage?
6. you use Internet explorer or another browser to access the site?
The link give http://infotep.bee.pl/info.php?avted takes me to a blank Web page
Are you referring to http://www.bee.pl/index
Refer to the following, who says that the sites host malware
http://www.Google.com/SafeBrowsing/diagnostic?site=monidopo.bee.pl/
-
I have xp sp3. When I turn it on, it lights up and then the screen stopped occasionally. and after that I cut the screen off, then on again, it turns on but the screen is sometimes alittle bit off. who is wrong?
Hello
1. don't you make changes to your computer, after which the issue started?
I suggest that you follow these steps and check to see if they help.
Step 1:
Update of your display drivers and check if this is useful.
Step 2:
Reinstall your display drivers, and check if that helps.
-
original title: HELP ME PLEASE!
(I am running windows xp) I need help! I tried installin linux ubuntu for netbook 10 on my msi u100, but everything was wrong when my little brother from my FlashDrive from the port, it has been installin linux from. so now when I turn on my computer it will not load windows, it will just have the msi logo and then the screen goes black and it does not load windows xp.
Netbooks and also most computers these days, do not come with an installation CD. Instead, it has a recovery partition. Assuming that you have not deleted the recovery partition,
Take a look at this:
http://randompastime.blogspot.com/2010/02/restoring-MSI-wind-U100-NetBook-to.html
Hope this helps
Post back if necessary
__________________________________________________________
If this post can help solve your problem, please click the 'bookmark' or 'Yes' to this message button. Marking a post as answer, or relatively useful, you help others find the answer more quickly.
-
When I try to "save under" I get a message "Initalising the root folders to display" and then the screen freezes. Sometimes when I click several times on the target folder it opens other times it does not. Any thoughts?
Hello
You try to save files using Microsoft office?
If so, this article should help you
The program stops responding when you try to open or to save a file in an Office 2002 program, in an Office 2003 program, in a 2007 Office program or in a program Office 2010
http://support.Microsoft.com/kb/313937
If its with a different program and then check if the problem exists in Safe Mode, if the computer works as expected in mode without failure, then we can solve the problem in the clean boot state.
Step a. refer to the article below for the procedure safe mode in Windows XP
A description of the options to start in Windows XP Mode
http://support.Microsoft.com/kb/315222
Step b. You need to perform a clean boot to find the program that is causing and then disable or remove.
How to configure Windows XP to start in a "clean boot" State
http://support.Microsoft.com/kb/310353/en-us
Note: When you are finished troubleshooting, follow the steps as explained in the article to reset the computer to start as usual.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
Press and hold Ctrl/Alt, then press on delete, and select Start Task Manager, and then the small black box appears and then disappears. How can I fix the Task Manager?
Hello
See if that helps you.
"The problems of Task Manager.
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-Task-Manager-problems
See you soon.
-
Windows Setup status
Whenever I start my computer, I get a series of pop-up boxes that talk about "Please wait while windows configures the State" and then the one that says "the component that you are trying to use is on a CD Rom, please insert". I have no idea what it is, and I have no disc to put on this line? If I hit the buttons cancel these boxes enough times to go, but it's annoying and there is notihing badly with the operation of the computer, after I get rid of the boxes. No idea how to stop this from happening again? I did all the steps that have been mentioned earlier and no results. I even did a system recovery. I don't know what to delete. Please help thanks
Hello
These messages usually mean that you have a problem with the HP printing software
Contact HP
http://welcome.HP.com/country/us/en/contact_us.html
Contact HP options at the link above.
HP's Support Forums at the link above.
-
Start my computer, it will default to the CTRL ALT DEL screen. After graduating in the login screen I enter the password. Windows will start and then the screen starts flashing and the screen say Logging Off, then restore the screen to the CTRL ALT DEL I can boot into safe mode. All other functions will not work.
Thank you
I guess you wanted to ask how to solve the problem. If then all in Safe Mode you can use system restore to set up Windows to a point when the problem did not exist.
-
my pc is stuck. I doubt that the fan provided within the system does not work. The problem is if I work for an hour or more first the cursor starts to behave correctly and then the program gets stucked and the pc needs a forced closure. And where the driver is placed at the bottom is very hot.
Original title: Stucks
Hello
In addition to becoming the fan if it does not, if it is a desktop computer, clean the inside with a can of compressed air.
If it's a laptop, check the vents for hair, dust, etc. and do not use a laptop when it is based on material surfaces: bedspreads, blankets, etc.
If the problem persists, if this is a laptop (as you say only pc, no office or laptop), take it to a local computer and reliable repair shop and get them to open and clean the dust inside...
Here is an interesting discussion about the reasons of your problem (IF your laptop):
http://PC-trickandsolution.blogspot.com.au/2011/07/fix-laptop-overheating-shutdown-problem.html
NB: > however 9 out of 10 cases of overheating are caused by obstruction of the air flow.
See you soon.
-
Photosmart HP 2510 don't click to turn on and then the 4 green flash buttons no start
Photosmart HP 2510... Bridge scanner by clicking the ignition on a minute and a half, printer fails/not start and then the four buttons (copy, Fax, Scan & Photo) all the green flash... won't start... help?
The printer seems to have a fatal error. The only thing that could clear up the problem is a hard reset. If this does not work, you will need to replace the printer.
To do a hard reset:
1. make sure that the printer is turned on.
2. pull on the power cord from the printer.
3. pull out the power cord from the wall.
4. wait for 30 seconds.
5. plug in the printer and turn it on.
Maybe you are looking for
-
screenshot with ios 10 does not
.
-
How to return the highest value in a column of numbers less than a given number
I am a beginner using formulas in number. I have an inventory in a Numbers spreadsheet (v3.6.2). Inventory numbers are in a column. I need to view the last number used or the highest number less than a given value. In my case, it is 9000. I can p
-
M100: Need driver for SD Card Host Controller & IR Port
Hello Can someone tell me if I can get the drivers for M100 Secure Digital (SD) Host Controller Card? I had an accident on my M100 and had to rebuild my machine, everything works fine expect the IR Port & SD Card. Can someone tell me if I can get the
-
Need help with DVD drive - Qosmio G30
Hello Sorry, my English is so bad. I need your help. I have a Qosmio G30 (PQG32E) and I have a problem in the DVD player. I see a (!) instead of the DVD drive in Device Manager. I think it's a problem with the driver. I don't know what I can do to so
-
Cannot create Alias name for Cardinal cannot right click maximum DF PROFI II CARD
Cannot create Alias name for Cardinal cannot right click to the maximum example of MAX installation instructions, does not match what I see. See attached picture.