Help with problem specifying text properties (style & antiAliasMethod)

I would be very grateful if someone could help me figure out what I am doing wrong in specifying certain text properties, namely style and antiAliasMethod.  I have tried many different things and consulted the JavaScript Reference Guide, Tools Guide and PS CS4 Scripting Guide, as well as several example scripts, but I can't seem to find the information needed.
The snippet of code below adds a text layer to a document and places text on it;  What I want is white Arial bold 10 point text with no antialiasing (this would appear as "none" in the PS CS4 text tool dialog).  This code does everything except get the bold property and the antialiasing = none property.  Instead, what this code produces is white Arial normal (not bold) crisp (not none) text,
My attempt to get no antialiasing instead of "crisp" causes an execution error, so that line is commented out below.  The line setting style to "BOLD" does not create an execution error, but it doesn't give me bold, either (instead I get normal).
I am certain these errors mean I do not understand the correct way to express the code to set these properties.  Can someone set me straight about how to do this?
Thanks.
        // Create a new text layer at the top of the document
        var myLayerRef = newDocRef.artLayers.add();
        myLayerRef.kind = LayerKind.TEXT;
        myLayerRef.name = "Test";
        var myTextRef = myLayerRef.textItem;
        // Set the text color, font, size, etc.
        var textColor = new SolidColor;
        textColor.rgb.red = 255;
        textColor.rgb.green = 255;
        textColor.rgb.blue = 255;
        myTextRef.color = textColor;
        myTextRef.font = "ArialMT";
        myTextRef.style = "BOLD";
//        myTextRef.antiAliasMethod = "NONE";
        myTextRef.size = 10;
        // Set the text position, blend mode and opacity
        var tx = 10;
        var ty = 50;       
        myTextRef.position = new Array(tx,ty);
        myLayerRef.blendMode = BlendMode.NORMAL;
        myLayerRef.opacity = 100;
        // Insert the text
        myTextRef.contents = "Hello World";

Update:
I discovered how to fix both problems myself.
The antialiasing was fixed by statement: myTextRef.antiAliasMethod = AntiAlias.NONE;
The bold problem was fixed by changing the font name to "Arial-BoldMT" and deleting the statement which attempted to set the style to "BOLD".
Thanks for your interest.  No further help is needed on this issue.

Similar Messages

  • Can anyone help with problem updating iphone5s cant get anything only apple on screen sometimes screen flashes blue

    can anyone help with problem updating iphone5s cant get anything only apple on screen sometimes screen flashes blue

    Hey damien555,
    Thanks for the question, I understand how frustrating this may be. It sounds like the update process may have been interrupted, and to resolve the issue, we’ll need to restore your device in recovery mode with iTunes:
    If you can't update or restore your iOS device
    http://support.apple.com/kb/HT1808
    Thanks,
    Matt M.

  • Can you help with problems receiving faxes- powerbook g4?

    Can I get help with problems receiving faxes on the powerbook G4?

    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/
    More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840

  • Can you help with Problems that one of our users i having with regiistration of Premiere Pro?

    Can you help with Problems that one of our users i having with registration of Premiere Pro?

    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/
    More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840

  • If pdf generated with Bullzip, opens with problems in text (missing, weird characters, etc...)

    pdf opening in new tab shows problems with text. If pdf was generated with Adobe acrobat, works fine. If pdf generated with Bullzip, opens in new tab, but with problems.

    hello lwhitman, the pdf preview in firefox is still under very active development. if you find any issues please report them at https://github.com/mozilla/pdf.js/issues & provide a sample pdf-file which shows the problem.

  • Need help with actively replacing text in SVG

    I am new to Dreamweaver, Illustrator and SVG.  Also, I do have a firm understanding of HTML but limited knowledge of Javascript and other languages.  I am trying to create a website where the user is able to type in a form field (or something to that extent) and have the text in a displayed SVG be updated with the typed text.  I've done extensive searching on the subject and come up with nothing that seems to work.  Nor do I seem to be able to make it work.
    I found a dead tutorial on the Adobe website which might help illustrate what I am trying to achieve:
    http://www.adobe.com/svg/basics/text.html
    ANY help would be GREATLY appreciated.
    Thank you
    Adam

    Select the text. Copy to Clipboard. Open TextEdit. Paste. Resize its window appropriately. Choose Print off its File menu. Done.

  • I need help with my wifi text. I can't use them

    I need help with my iPhone 4. I can't text since. I get wifi in my house ?

    What is the make & model of the wireless router that you are trying to extend with the WN3000RP? Can any other wireless clients connect to the extended network, just not your iMac?

  • TS1363 Help with Problem encountered with iPod Touch 5th gen After performing  Sync.

    Hello Friends.
    My name is Joaquin. I was wondering if anyone can help with a problem I have encountered with my iPod Touch 5th generation running under OS 7.0.4.
    After performing a Sync, a lot of the song in my iPod showed a red icon beside the song. It is the same Circle with a square in the center icon that shows the download progress status that you see when updateing APPs, etc.
    The songs play perfectly in my computer library and in an old iPod Classic but not in the iPod Touch. The only difference was that when I connected the iPod I got a message stating something like "Transfer purchases from iPod touch to computer" despite of the fact that I did not make purchases from my IPod.
    I will really appreciate the help. I can´t survive without my music. Thank you in advance.
    Regards,

    Does the iOS device connect to other networks? If yes that tends to indicate a problem with your network. Yes
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect before? no
    Try the following to rule out a software problem:  (Not clear what you did)          
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network      
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem and it does not connect to any networks make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem. Since it connects to other networks that indicates a problem with your network
    Apple Retail Store - Genius Bar

  • Need help with a typewriter text effect

    Hi, could you guys look over my script and see what's up? I'd like the words in the string to type out in the alotted time, but for some reason my function apends the first and last letter of anything in the string, so "Hello?" becomes "ello." This is not affected if I pad the text in the string with spaces, i.e. " Hello? " Nor does this work if I start count i at -1, not 0. Please help.
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    var str:String = "Hello?";
    var i:int = -1;
    var delay:int = 720%str.length;
    var timer:Timer = new Timer(delay);
    timer.start();
    timer.addEventListener(TimerEvent.TIMER,gotime);
    function gotime(e:TimerEvent)
    textbox_txt.appendText(str.charAt(i));
    i++;
    if (i>=str.length)
    timer.stop();

    AHA!  If forgot to go into the properties of my textfield and tell the ebedded font to have a character range of "All."
    Thanks for getting my brain going Ned!
    -Ab Infinito

  • Help with parsing a text string in address book and moving it to 'related person' field

    I am wanting to make a little applescript that will go thru my contacts and find data in the NOTES field and parse it slightly and move it to another field.  (sorry if parsing isn't the right word here)
    The data to be found is a GPS coordinate with this EXACT format:
    <Lat:12.345678><Lon:-12.345678>
    ...the only thing different from this example is the digits, and the number of digits.
    What I want to end up doing is deleting this data from the NOTES field, but leaving any other data, (this part sounds difficult to do to, to me!)
    And moving it to a related person field with the label gps, and the coordinate now reading exactly:
    12.345678,-12.345678
    (FYI, you can copy/paste a coordinate like this very fast into the maps app on iPhone and locate it instantly)
    Thanks for the help on this
    If this is too complicated I can break up the process into steps.  I know how to do some of it, but not sure about the parsing, and then delete just part of the notes field...
    Thanks!

    Hi,
    This script work here, try it :
    tell application "Address Book"
        repeat with thisContact in (get people)
            set tNote to note of thisContact
            if tNote is not missing value and "<Lat:" is in tNote and "<Lon:" is in tNote then
                set {GPS_value, newNote} to my getGPS_coordinate(tNote)
                if newNote is not "" then -- no error
                    set gpsField to (related names of thisContact whose its label = "gps")
                    if gpsField is not {} then
                        set value of (item 1 of gpsField) to GPS_value
                    else -- field "gps" is empty
                        make new related name at end of related names of thisContact with properties {label:"gps", value:GPS_value}
                    end if
                    set note of thisContact to newNote
                end if
            end if
        end repeat
        save
    end tell
    on getGPS_coordinate(this_note)
        set oldTid to text item delimiters
        set {tLat, tLon, newNote} to {"", "", ""}
        try
            set text item delimiters to "<Lat:"
            set tLat to text item 2 of this_note
            set text item delimiters to "<Lon:"
            set tLon to text item 2 of this_note
            set text item delimiters to ">"
            set {tLat, tLon} to {text item 1 of tLat, text item 1 of tLon} -- get values (lat... and long...)
            set text item delimiters to "<Lat:" & tLat & "><Lon:" & tLon & ">"
            set this_note to text items of this_note
            set text item delimiters to " "
            set newNote to this_note as string -- delete GPS coordinate in this note
        end try
        set text item delimiters to oldTid
        return {tLat & "," & tLon, newNote}
    end getGPS_coordinate

  • Need Help with Timeline Setup, Text won't show up in SWF

    I am creating a site for one of my company's restaurants, and I have all of my pages created in flash. I have not done any Actionscript on any of the pages yet. I thought that I would just be able to create each page and take the swf files and import them into a main index page on the timeline and code from there. However, when I imported my .swf files to the library of the main flash file, none of my text showed up at all. I have added the fonts to my library and I tried breaking apart the text, but nothing has worked.
    Also, I don't know how exactly to set up the timeline to link all of my pages, and I have looked in other forums and have seen people reference the online help, but I do not know where to find that!
    I am a mess right now, the site needs to be up by Friday!! PLEASE HELP!

    So I have created all new movie clips in my index.fla file by copying all of my files from another file and pasting them into the movie clip  timeline. I have placed all of my new movie clips in different layers on the index timeline, and have created keyframes 10 frames apart. I have my actions layer with frame labels for each page every ten frames (i.e. tbLabel is at frame 1 in my actions layer and the movie clip is on a different layer at frame one, restaurantLabel is at frame 10 in my actions layer and the movie clip for that page is on a different layer at frame ten, all the way up to frame 120). I haven't put any actionscript in my movieclips except for stop(); at the end of each file. My current actionscript, placed in frame 1 for my first page when the viewer goes to the site is as follows:
    thunderBayBtn.addEventListener(MouseEvent.CLICK, goIndex);
    restaurantBtn.addEventListener(MouseEvent.CLICK, goRestaurant);
    birchBtn.addEventListener(MouseEvent.CLICK, goBirch);
    menuBtn.addEventListener(MouseEvent.CLICK, goMenu);
    eventBtn.addEventListener(MouseEvent.CLICK, goEventLand);
    davEventBtn.addEventListener(MouseEvent.CLICK, goDavEvent);
    rockEventBtn.addEventListener(MouseEvent.CLICK, goRockEvent);
    pewEventBtn.addEventListener(MouseEvent.CLICK, goPewEvent);
    pewEventBtn.addEventListener(MouseEvent.CLICK, goPewEvent);
    giftBtn.addEventListener(MouseEvent.CLICK, goGiftCert);
    downloadBtn.addEventListener(MouseEvent.CLICK, goDownload);
    contestBtn.addEventListener(MouseEvent.CLICK, goContestLand);
    davContestBtn.addEventListener(MouseEvent.CLICK, goDavContest);
    rockPewContestBtn.addEventListener(MouseEvent.CLICK, goRockPewContest);
    function goIndex(event:MouseEvent):void
                gotoAndPlay(1);
    function goRestaurant(event:MouseEvent):void
                gotoAndPlay(10);
    function goBirch(event:MouseEvent):void
                gotoAndPlay(20);
    function goMenu(event:MouseEvent):void
                gotoAndPlay(30);
    function goEventLand(event:MouseEvent):void
                gotoAndPlay(40);
    function goDavEvent(event:MouseEvent):void
                gotoAndPlay(50);
    function goRockEvent(event:MouseEvent):void
                gotoAndPlay(50);
    function goPewEvent(event:MouseEvent):void
                gotoAndPlay(50);
    function goGiftCert(event:MouseEvent):void
                gotoAndPlay(90);
    function goDownload(event:MouseEvent):void
                gotoAndPlay(100);
    function goContestLand(event:MouseEvent):void
                gotoAndPlay(110);
    function goDavContest(event:MouseEvent):void
                gotoAndPlay(120);
    function goRockPewContest(event:MouseEvent):void
                gotoAndPlay(120);
    However, when I go to test the movie, I get "1120 access" errors even though the buttons are named in the properties pane, however, I cannot view that in the file that conatins all of my movie clips because they are movie clips.
    Also, When I go to view the movie with all of my movie clips, all of them play one on top of the other, none of them stop, and the buttons do not work.
    I'm having a hard time figuring out what actionscript I need to use and where!

  • Can anybody help with problems with Mail & Backup, please?

    Hi, yesterday, for some reason, a problem developed with Mail.
    Without me changing anything, while it will send and receive e-mails through my Apple account, it has stopped downloading emails from my BT account, which previously worked fine.
    It keeps trying to log on to collect them (the rotating gear wheel beside the account operates) but nothing downloads. It is not the BT account which is at fault, since my iPhone, which is synched to the computer, downloads them fine.
    Also, while I had been regularly getting advice from Backup that my storage disk was full and it was deleting an old backup, today Backup has told me that the disc is full and the backup has failed.
    I cannot see anything in Settings which could obviously account for these changes.
    i am a pretty new Apple user (a conversion I cannot claim has been a great success so far, and I would be grateful for any help you can provide.
    Many thanks,
    Neil

    Export the folders/mailboxes and put them in the other users Public folder or go to the hard drive level user and put them in the Shared folder. You may have to reset permissions using Get Info (command - I). The other user can them import them.

  • Please help with problem in PDF file and printing

    I have created an Illustrator file with a logo on it. The logo looks fine in Illustrator (CS3 and CS5). If I use "save as" to then save the .ai file to a .pdf file, the logo looks the same as in the .ai file. However, if I use "print" to create a .pdf file, the logo sometimes loses some of the elements in it.
    Here is what the logo should look like:
    Below is what it looks like when I use "print" to generate the PDF file:
    An additional problem is that even if I used "save as" to generate the pdf file, some times, when the file is actually printed physically onto paper, the logo appears in the wrong version (although it looks right on screen).
    Can someone help me with this? I am quite desparet right now because I can't see how I can control this.
    Also, is there any way I can attached the .ai file so someone can look at it?
    The white lines that disappear are not "lines" they are a slightly larger shape placed behind the smaller black one in fonrt.
    Thanks for any help!

    Why are you "printing to pdf"? Does "Save As" yield better results?

  • Help with delivering dynamic text through an external file, through XML?

    I'm struggling to find the best way to deliver dynamic text
    from an external file, through XML, to a Flash file.
    I use small Flash pieces to deliver multiple sets of content
    through a single .swf file. An example is here:
    http://www.esi-intl.com/public/government/federal.asp
    In the .swf file at the bottom, I'm using a three-scene .fla
    file. I'm putting the actionScript in the Actions layer atop each
    frame. Example:
    stop ();
    loadVarsText = new LoadVars();
    loadVarsText.load("fedNews.txt");
    //assign a function which fires when the data is loaded:
    loadVarsText.onLoad = function(success) {
    if (success) {
    trace("done loading");
    //Now that we know the data is loaded,
    //set the text content of the Text Field
    //with the instance name "scroller" equal to the
    //contents of the variable
    scroller.html=true;
    scroller.htmlText = this.var1;
    } else {
    trace("not loaded");
    In that .txt file, I'm putting the information like this:
    var1=<font face="tahoma,verdana,sans-serif" size="11px"
    color="#000000"><b><a href='
    http://www.esi-intl.com/public/classroomtraining/dau.asp'>DAU
    Grants ESI Course CON353
    Equivalency</a></b><br>Advanced Business Solution
    in Contracting (CON 353) is an equivalency for DAU's CON 3535
    course, Advanced Business Solutions for Mission Support. <a
    href='
    http://www.esi-intl.com/public/classroomtraining/dau.asp'><U><font
    color="#996633">Continue</font></U></a></font>
    So much of this is pick-ups from what I've researched in
    Google. I'm looking for a way I can feel more confident in my code,
    and also have that code follow CSS.
    Lastly, I recognize the problems in XML with using single
    quotes / double quotes, and the & symbol. This is one of my
    largest time sucks, and I'd like to find a better way to do this.
    Thank you

    Hi,
    Did you ever find a resolution to this? I'm having a similar
    issue that I can't seem to get multiline dynamic text working in
    CS3.
    The font is embedded but it just displays the first line, and
    then a blank. I'm sure this worked fine in Flash MX.
    Cheers, Ant

  • Help with chapter title text and removing "{" symbol

    I am trying to creat a Quicktime Pro movie with chapter titles.  I followed the instructions in the Quicktime user manual to use a text editor and I am able to creating the chapter markers as desired, however, my chapter titles all have the "}" symbol at the beginning.  I can't seem to figure out what's wrong with my text file.  See my text file below.  When I import the below file my chapter titles show "}Chapter 1" and so on.  I have tried putting an extra space, return break and it still doesn't work.  Any advice on what I'm doing wrong?  Thanks!!
    {QTtext}{font:Geneva}{plain}{size:12}{textColor: 65535, 65535, 65535}{backColor: 0, 0, 0}{justify:center}{timeScale:30}{width:160}{height:48}{timeStamps:absolute}{lan guage:0}{textEncoding:0}
    [00:00:00.00]
    {textBox: 0, 0, 50, 160}Chapter 1
    [00:02:49.07]
    {textBox: 0, 0, 50, 160}Chapter 2
    [00:05:15.41]
    {textBox: 0, 0, 50, 160}Chapter 3
    [00:08:51.13]

    Problem solved thanks to this discussion:
    https://discussions.apple.com/message/3465448#3465448
    I removed the unneeded "{textBox: 0, 0, 50, 160}" from each line and no more extra "}" symbols!

Maybe you are looking for

  • Please help keep freezing

    hi.. i just buy my first blackberry curve 8530 and the trackpad keeps freezing,not let me do anything , i  should return it to the store? repeatedly remove the battery when is on, is  that more I can do , I am thinking of returning it.. . Please any

  • Web service client invoke problem

    Hi all,I want to in sap studio to develop web service client to invoke a .net webservice,this webservice  need authen ,so I develop a standandalone proxy to write a consle to invoke my code. The follwoing is my invoke  code public class WebServiceTes

  • Adwords, Analytics, Remarketing Specialist needed - any recommendations?

    Hi everyone, Does anyone have a recommended online marketing specialist that has experience with Business Catalyst and Wordpress? We are looking at hiring someone long term to manage our adwords, remarketing and analytics for our multiple websites. W

  • Sound Blaster Rage VoiceFX Test button not working

    I purchased my creative sound blaster Tactic3D Rage headphones today and so far I am really happy with them. The only thing that bugs me is that the test button for VoiceFX in the control panel doesn't seem to work. I press it and talk through the mi

  • Can't Kill "UnDead" PlayList!

    My 8820 insists on playing every song in the folder when I play any one.  There is no evidence of a playlist, nor are there any options to edit or delete a playlist.  It appears I'm stuck with a default setting to play the entire folder every time.