AppleScript Editor - Color issue

When saving a script as an application, it is possible to use the Font and Format menus to format text in the description area of the script window. The formatting applied to its description should appear in the script's startup screen.
Has anyone ever noticed that the color in the startup screen seems to never be the same as the one applied to the text in the description area? To get a blue text, for instance, in the startup screen, the text must be set to red in the description area.
That surely looks like a bug. Any comments?
Message was edited by: Pierre L.

Thanks for your comment.
I wasn't aware of the possibility to edit the description.rtfd file. Very interesting. However that doesn't fix the color issue. To get a blue text in the script's startup screen, the text has to be set to red in the description.rtfd file.

Similar Messages

  • Applescript won't run as .app but runs fine in AppleScript Editor

    I'm an experienced web developer.. but total applescript noob. so forgive me if this is a silly question.
    I'm calling my script it from Flash via fscommand to launch a PDF using finder, rather than a browser.
    The script works great from AppleScript Editor when i hit run but when saved as a .app it doesn't run.
    any ideas?
    Here's the code:
    property fileName : "my.pdf"
    set myPath to (path to me as string)
    set AppleScript's text item delimiters to ":"
    set the parentFolder to ¬
    ((text items 1 thru -2 of myPath) & "") as string
    set AppleScript's text item delimiters to ""
    try
    set targetFile to alias (the parentFolder & fileName)
    on error
    return quit
    end try
    tell application "Finder"
    open file targetFile
    end tell

    A script application is actually an application bundle - a bundle is a kind of folder that gets treated like a single item (in this case, an application). Getting path to me results in a path that ends with a colon (since it is a folder), so when you try to use text item delimiters to get the container you are actually just stripping off the trailing colon, so the path built for your file won't point to the correct location.
    As previously posted, the Finder can get the container, so you can just do everything in a tell application "Finder" statement:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    property fileName : "my.pdf"
    set myPath to (path to me)
    tell application "Finder"
    set the parentFolder to container of myPath
    try
    open file ((parentFolder as text) & fileName)
    end try
    end tell
    </pre>

  • Font color issue with inserted HTML content in JTextPane (HTMLEditor)

    Hi everyone,
    I have a very serious issue with the HTMLEditor I'm developping. This editor is a little bit special since it is intended to edit blocks of HTML content that are loaded when the editor is initialized.
    You can in fact decide to keep this loaded HTML content or start a new HTML document from scratch. Alright, now my issue is the following :
    When text is loaded, it's properly rendered. I have a functionality which let's you see the HTML code from the HTML document used in the editor, so I can check and see if code is correct, and yes, it's correct.
    The problem is that when I try to change the color attribute of some text on my loaded content, nothing happens ! I don't know what's the matter with this bug, I only have it with the color attribute, with every other attribute everything's fine (font, size, etc.)
    The funny thing is that, after I change another attribute for loaded content, like font family, then changing color attribute funcionnality starts to work again !
    I've also noticed that I don't have any of these problems when I start my HTMLDocument from scratch (when I create a new HTML document and start typing text).
    Another weird thing, is that I have a feed-back feature in my editor which reflects attributes for text over which the caret is positionned. For example, if you put caret over red text, the color combo box displays a red value, you know, just like in MS Word. Well, with my loaded content if I have a red text color and I decide to put it in green, the color combo box displays the green value when I click over text for which I have changed color, but in my JTextPane it's still red !! And when I try to see the HTML code generated nothing has changed, everything is still red !
    There is something really strange here, this means that when I get the attributes of the loaded text from the HTMLDocument, color appears to be green, but when it gets rendered in the JTextPane it's still red and when it gets anlyzed to produce the corresponding HTML code, these changed attributes are not taken into account.
    But the most weird thing above all, is that I don't have this bug everytime, sometimes I start my HTML editor applet and it works fine, and some other times this color issue is bakc there. Is this a known bug for Swing API or not ?
    =============
    This is more or less my technique :
    //I declare a global reference to my HTMLDocument
    HTMLDocument _docHTMLDoc;
    //Create a JTextPane
    JTextPane _tpaEditor = new JTextPane( );
    //Set type content to automatically select HTMLEditorKit
    _tpaEditor.setContentType("text/html");
    //Get a referene to its HTMLEditorKit
    HTMLEditorKit _kitHTMLEditor = (HTMLEditorKit) _tpaEditor.getEditorKit( );
    //I then have a function to create new documents
    void newDocument(){
      _docHTMLDoc = (HTMLDocument) _kitHTMLEditor.createDefaultDocument();
      _tpaEditor.setDocument(_docHTMLDoc);
       //I do other stuff wich are not important to be shown here
    //I then have another function to load content
    void loadContent(){
       //I get content from a HashMap I initialized when I started my applet
       String strContent = (String)_mapInitParameters.get("html_content");
       //I set content for my editor
       _tpaEditor.setText(strContent);
    //Notice.. I have tried many other ways to load this text : via HTMLEditorKit and its insertHTML method, I
    //have also tried to store this content in some reader and make HTMLEditorKit read it... and nothing,
    // I always get the bug
    //To change color it goes like this :
    JComboBox _cboColor = new JComboBox();
    //I correctly initialize this combo with colors
    //then I do something like this
    ActionListener _lst = new ActionListener(){
       public void actionPeformed(ActionEvent e){
          Color colSel = (Color) _cboColor.getSelectedItem();
          MutableAttributeSet mas = new SimpleAttributeSet();
          StyleConstants.setForeground(mas,colSel);
          setAttributeSet(mas);
    _cboColor.addActionListener(_lst);
    //Set Attributes goes something like this
    private void setAttributeSet(javax.swing.text.AttributeSet atrAttributeSet) {       
            //Get current 'End' and 'Start' positions
            int intCurrPosStart = _tpaEditor.getSelectionStart();
            int intCurrPosEnd = _tpaEditor.getSelectionEnd();
            if(intCurrPosStart != intCurrPosEnd){
                //Apply attributes to selection
                _docHTMLDoc.setCharacterAttributes(intCurrPosStart,intCurrPosEnd - intCurrPosStart,atrAttributeSet,false);
            else{
                //No selection : apply attributes to further typed text
                MutableAttributeSet atrInputAttributes = _kitHTMLEditor.getInputAttributes();
                atrInputAttributes.addAttributes(atrAttributeSet);

    hi, friend!
    try this:
    void setAttributeToText(JTextPane pane, int start, int end, Color color) {
    MutableAttributeSet new_att = new SimpleAttributeSet();
    StyleConstants.setForeground(new_att,color);
    HTMLDocument doc=(HTMLDocument)pane.getDocument();
    doc.setCharacterAttributes(start,end,new_att,false);
    It works fine in my Application, hope will work in yours, too.
    good luck.

  • IPhone 5s screen color issues

    Got a 5s, love, however I was wondering, the color white seems "yellowish". I was able to get one (AT&amp;T) through Best Buy, and ordered one through Apple. Both phones seems to have the white color issue. I went to the Apple store and compared the screens, my phone seems "yellowish", even confirmed by the Apple employee. Anyone else having issues?

    Thank you for your help, Shipping cost is a issue. I will contact the apple soon
    Thank you

  • Script to export a script as run-only via AppleScript Editor

    Hi,
    I have written a script that's creating a new script and than save it to the desktop as run-only.
    Now Apple has re-written the rules of AppleScript Editor so the run-only command had to go via 'Export' (and not 'Save' anymore).
    I can't figure out how to script it now... I even tried to script the menu's but that's only possible for all menu's without '...' ending it. For example: 'File > New' is scriptable, but 'File > Export...' is not.
    Script 1 is the script I want to get working, but if scripting the Export of AppleScript Editor is not possible, I want to get de workaround of Script 2
    Script 1:
    ==================================================
    set myScript to "
    set studentnumber to \"" & studentnumber & "\"
    set password to \"" & password & "\"
    tell application \"Safari\"
    tell application "AppleScript Editor"
    activate
    make new document with data myScript
              save document 1 as "application" in file ((path to desktop as Unicode text) & "Automatisch Inloggen op GLR.app") with run only
    -- save doesn't work anymore and has to be EXPORT...
              return
    close document 1
    end tell
    =================================================
    Script 2 (workaround, but doesn't work either)
    tell application "AppleScript Editor" to activate
    menu_click({"AppleScript Editor", "File", "Export..."})
    -- 'File > New' works but 'File > Export... not'
    on menu_click(mList)
              local appName, topMenu, r
    -- Validate our input
              if mList's length < 3 then error "Menu list is not long enough"
    -- Set these variables for clarity and brevity later on
              set {appName, topMenu} to (items 1 through 2 of mList)
              set r to (items 3 through (mList's length) of mList)
    -- This overly-long line calls the menu_recurse function with
    -- two arguments: r, and a reference to the top-level menu
              tell application "System Events" to my menu_click_recurse(r, ((process appName)'s ¬
                        (menu bar 1)'s (menu bar item topMenu)'s (menu topMenu)))
    end menu_click
    on menu_click_recurse(mList, parentObject)
              local f, r
    -- `f` = first item, `r` = rest of items
              set f to item 1 of mList
              if mList's length > 1 then set r to (items 2 through (mList's length) of mList)
    -- either actually click the menu item, or recurse again
              tell application "System Events"
                        if mList's length is 1 then
      click parentObject's menu item f
                        else
                                  my menu_click_recurse(r, (parentObject's (menu item f)'s (menu f)))
                        end if
              end tell
    end menu_click_recurse

    Applescript has changed a little. You can now save uncompiled scripts, but it would make no sense to save an uncompiled script as read-only, so trying to do that fails. Add a compile command before the save:
    tell application "AppleScript Editor"
      activate
              set doc to make new document with data myScript
      compile doc
              save doc as "application" in ((POSIX path of (path to desktop)) & "Automatisch Inloggen op GLR.app") with run only
              return
      close doc
    end tell

  • Camera Raw 8.7.1 color issues

    After the recent camera raw update to 8.7.1 I have noticed some pretty bad color shifts between camera raw and photoshop cs6. The colors in camera raw look very saturated and then when moving into photoshop the saturation shift is pretty dramatic. I never had these issues before the update. I have attached a screenshot illustrating the color issue. I am working on a very good monitor ( NEC PA 242W ) and it is color calibrated using NEC Spectraview calibration system. I have double checked my color setting in photoshop and camera raw to make sure I was viewing the same color space. I am just wondering if this is maybe a bug in the update and others are experiencing the same issues or if I am just missing something.
    I would also add that I am using the Creative Suite CS6 and not CC. If that makes a difference.

    Thanks ssprengel for the suggestions and running a side by side yourself. I went through all my settings and applied your suggestions and did a side by side each time. I even uninstalled the entire creative suite on my system then reinstalled and updated and I still get the same outcome. It was fine yesterday with the previous version of ACR. It seems like the updated version is not showing the image preview in any color space. When I switch the color space in the workflow options the histogram changes but it doesn't seem to affect the preview window. And yes the preview button was checked on it was just when I was using the screen grab tool in windows it took focus away from the application so that is why the settings appear grayed out. I have attached more screen grabs below illustrating all my settings. Also here is some system info if anyone out there has a similar setup and would be willing to test.
    Adobe Photoshop Version: 13.0.1 (13.0.1.3 20131024.r.34 2013/10/24:21:00:00) x64
    Operating System: Windows 7 64-bit
    Version: 6.1 Service Pack 1

  • Photoshop CC Color Issues

    When I updated my Photoshop program two updates ago I began having color issues in Photoshop as the rest of the Adobe Suite.  Regardless of whether the color mode is RGB or CMYK the colors appear washed out on the program.  This image http://i.imgur.com/BWVwbx2.jpg  is an example. The image on the right is a screen shot of the original image of the shoes copied from the website, the image on the left is the same image copied into photoshop. When I try to save the RGB file as a jpeg or a PDF it looks the same as it did in the program, washed out.  However,  when the file is CMYK color mode and I try to save it as a jpeg or PDF it looks like this http://i.imgur.com/TAUyeOf.jpg. Both my coworker and I started having this issue on our seperate computers around the same time so I don't believe that it is a graphics card issue or something along those lines. How can I fix this?  I have tried calling Adobe support, but unfortunately the person on the phone was not very experienced in the program and unable to help.
    Some Info about my computer:
    Currently I have Photoshop CC with the 14.2.1 update.  I have Windows 7 Professional SP1, 64-bit OS,  8 GB of RAM (7.87 GB Usable) and 360 GB free space on the (C:) drive.

    Illustrator and Windows Photo Viewer agree. They should, because they're both fully color managed. I assume Photoshop shows the same.
    Picasa is not color managed. All bets are off there, it can display like anything under the sun, depending on what color space the file was created in, and how your monitor displays color.
    There is a basic checklist for color management issues:
    1 - is the application color managed at all?
    2 - is there an embedded document profile, and what is it?
    3 - what is the monitor profile?
    We've established #1. For #2, see in the lower left corner of the Photoshop image window. Click the little arrow and check "document profile". What does it say?
    #3 is often the critical one. This is where your calibrated monitor profile should be - but if you don't do that, it's often a manufacturer supplied profile. These are often worse than worthless. The best option here is to use sRGB if you have a standard gamut monitor (like the U2412) - or Adobe RGB if you have a wide gamut monitor (like your co-worker's U3011). Yes, there is a significant difference between these two.
    Anyway:
    Go to Control Panel > Color Management > Devices. Set sRGB IEC61966-2.1 as your default monitor profile there and relaunch Photoshop:
    With this setting, Photoshop, Illustrator and Windows Photo Viewer will display  (more or less) correctly. It could still be that the file had the wrong document profile, or none at all, but the file will display correctly as it is.

  • Can i use the 'Record' feature in Applescript editor to automate bulk mail

    Hi,
    Is it possible to use the 'Record' feature of the Applescript editor to create a script that will automatically copy a website address into a new email message and then send that email message to everyone in my Friends category from the Address Book.
    I want to do this because I want to alert my friends to changes on my website once a week, but I don't want to have to sit and type out the email and copy the website address and everything like that. So I was thinking I could do it with one click using Applescript.
    Is that right and how dangerous is it. Like if i somehow manage to mess up the script can I just delete it and start again without causing any damage to my Mac
    Thanks
    Jason

    JayTelford wrote:
    Hi,
    Is it possible to use the 'Record' feature of the Applescript editor to create a script that will automatically copy a website address into a new email message and then send that email message to everyone in my Friends category from the Address Book.
    I want to do this because I want to alert my friends to changes on my website once a week, but I don't want to have to sit and type out the email and copy the website address and everything like that. So I was thinking I could do it with one click using Applescript.
    Is that right and how dangerous is it. Like if i somehow manage to mess up the script can I just delete it and start again without causing any damage to my Mac
    Thanks
    Jason
    Perhaps I should make myself more clear what I want to do.
    I want to do the following.
    1: Open Mail
    2: Create a new email message
    3: Set the recipients from my contact group "Friends" so that everyone in my my 'Friends" contact group will receive the email
    4: Set the subject as: "Check out these great new updates to my site"
    4: Set the body of the mail message as follows:
    Hi There,
    Thanks to you all for subscribing to these updates. Here are this weeks updates from Jason's Online Mag. [website address]
    Regards
    Jason Telford
    http;//web.me.com/jasongtelford
    5: Send the email
    Am I correct in thinking that I will need to use Automator and schedule the automation to run a script as per a weekly iCal event.
    If this is correct, then how would I do that. Can I use the 'Record' feature of Automator and the Applescript Editor, to create the automation and the script. I am new to doing this kind of thing so I am unsure of the procedure for accomplishing the task I described above automatically.
    Also I should apologise for not making my original post clearer.
    Regards
    Jason
    Message was edited by: JayTelford> Corrected a spelling error

  • HP 7260: Photo tray = color issues (pink photos)

    Hi,
    I have a 7260 and it's working fine, as long as you don't use the photo tray.
    Today I tried to print a couple of photos on advanced hp photo paper.
    No problems at all, except that the picture is completely... pink.
    So I tried to mangle with the color settings (in windows) and eventually ended up with 6 pink pictures.
    Since I thought this was a settings error, I tried printing straight from the SD memory card.
    I figured that if there was no computer involved, there wouldn't be any setting issues either.
    And thus I ended up with 7 pink pictures.
    I finally decided this would probably be an ink issue, but to make sure I tried to print the same photo on a regular A4 sheet.
    And... no color issues there! Printing on regular A4 sheets works just fine!
    Any idea how I could make the printer print the right colors on the right paper?

    I suggest opening the Print & Scan System Preferences, then highlight your HP Photosmart printer in the printers list and delete it by pressing the minus sign. Now, re-add the printer by clicking on the plus sign and select the printer. Make sure that the 'Print Using:' pull down aut selects the correct driver for your printer. If it doesn't, pull down the list and manually select the correct driver using the 'Select Printer Software' option. Hopefully that will resolve your issue.
    HP Printer Support for Mac OS X

  • Color issues

    Hi, I recently installed Creative Suite Web Premium, and have
    weird color issues. If I open a jpeg in fireworks it looks correct,
    but if I open it PhotoShop CS3 or Windows Photo Gallery the colors
    look REALLY bright, not even close.
    Any Ideas on how to fix this?
    Thanks

    In Photoshop, try turning off View > Proof Colors.
    If that doesn't work, try Edit > Assign Profile and choose
    "Don't Color Manage This Document."
    If that doesn't work, try Edit > Color Settings and set
    the "Settings" to "Monitor RGB."

  • Illustrator CS6 color issues when saving JPG

    I have recently gotten rid of the Pantone+ color books and replaced them with the old color books, using the "Workaround 1: Replace Pantone Plus with older Pantone color books" help from Adobe. Followed all of the instrauctions and had no issues until two weeks ago. Then suddenly when saving PDFs I had to start changing the output Color Conversion to ' convert to destination'. I never had to take this extra step before. Now if I do not do this it saves some colors as black. Whatever, I got over that and take the extra step.
    TODAY, now I can't even save JPGs without color issues. Some JPGs save correctly. Then I use the same color in a different file, and it saves completely different. Same color profiles, swatch options, blah blah blah.
    Someone help me. I am extremely fed up with these issues. Like everyone else, this is my job and now it is making a huge impact on my work...

    What program are you using to view the PDFs?

  • Bizzare Color Issue With JPEGs In RGB

    Recently when I've imported any jpegs from either the web or from my Thinkstock account I get strange color issues when it opens the image. Mostly the distortion happens in the whites. By default it opens in RGB mode (figure 1) and the issue goes away if I convert to CMYK mode (figure 2) but the image needs to be in RGB for me to use in an After Effects comp. Is there some step I'm missing in my color management? Thanks!

    Make sure you install the 10.9.1 update.
    Another test you can do is disable GPU drawing in Photoshop's preferences, then relaunch Photoshop.
    If the problem goes away, then it was caused by the video card driver (or, possibly by a defect in the GPU, but those aren't as common).

  • Color issues in Safari

    Hello, I've just uploaded my first Muse site: www.michaelphipps.net
    It worked well and looks perfect in Firefox on my computer (I haven't checked IE yet). In Safari, some of the rollover images are showing as a different color than the background. See the windows with the flags that say "Gallery", etc. You'll notice a small rectangle box around them where the orange (or green on other pages) is darker than the background. I looked on another computer with an older version of Safari and the problem is not there.
    I did some research and discovered that Safari pays attention to color profiles, but other browsers do not. I checked my background images and compared them to my rollover images. Different profiles? Yes! So I fixed that and the problem remained. I've been trying test after test for hours and discovered something strange. I saved the background image and placed it in the site with Muse. I cropped that same image in Photoshop and placed it on the other image in Muse. A quick check in Safari shows that the color issue is resolved- the two images are the same color. I cropped the image even smaller and the same test yielded good results- the colors of the two images are the same. I cropped it again to 221 by 61 pixels and tried it again. The problem is back! According to my tests, the only difference is the size of the image. So either Photoshop is saving the smaller image differently, or Muse is rendering it differently. Why? And how would I stop it?
    Thanks for your help!

    Just a thought - Musing [pardon pun]
    What file format are you using? ,jpg? .psd?  .png?
    Is Bridge in the workflow?  Is Camera Raw in the workflow? Is Save For Web in the workflow? Is Lightroom in the workflow. << any of them have the posibility of being the cause of your color mismatching issue.
    I use Lighroom a LOT, Thus I send photos from there to Photoshop and back. So - I have the color profile in PS set to ProPhotoRGB most of the time.
    Even though I have the 'always ask' about profile mismatches enabled I still have occasional issues with photos leaving PS with strange colors - usually because I'm impatient and not paying attention.
    My suggestion [what I would try] >>
    Be sure the PS used profile is set to RGB:
    Then I would open ALL my images in PS and Convert them all to RGB

  • Strange Color issue for my display (blue - purple tint)

    hi guys,
    I have a white macbook.
    Recently, I realize some color issue on displaying blue.
    check this picture below (I uploaded to my flickr)
    and when it occurs I can only restart my computer, sometimes it changes back to normal...
    or I can just use an external screen to ignore this problem (which I am doing it now)
    anyone have any ideas?

    I fixed it by going back into each diffuse texture and choosing "Edit UV Properties" and hitting OK - this seem to reset and re-render each texture.
    Seems like a bug unless you can't use Image Size on documents that contain 3D layers maybe?

  • Dual monitor color issue - oversaturated image in CS4

    Hi, I wonder if you can help. I found people having similar issues, but never seen an actual answer, so your input would be greatly appreciated.
    My set-up:
    MacBook Pro Dual Core intel based 15.4 2.6GHz running OS X 10.5.6 - also my primary display
    HP LP2475- secondary display
    CS4
    Both monitors were calibrated using X-rite Eye-one LT (each with a separate profile)
    I've tried calibrating each monitor 3 times and still get the proble,
    My problem:
    Running in dual monitor mode in bridge or safari/firefox- no problems at all: almost consistent colour between both monitors.
    When I open the images in Photoshop CS4, they look fine on my MacBook screen, but when I drag them over to the HP the color is grossly oversaturated - especially in the red. What am I doing wrong? (in fact on the HP monitor, the color looks perfect in bridge but super insanely saturated in CS4)
    Does anyone have a clue on how I can fix this?
    Thanks!

    You say your running 10.5.6?  Why haven't you updated to 10.5.8?
    FWIW, I never had color issues under 10.5.X, however I have since upgrade to 10.6.
    See the thread I started in which Adobe responded:
    http://forums.adobe.com/thread/483359

Maybe you are looking for

  • Why does "allow page view sharing" not show up in Acrobat XI (11.0.04)?

    Hi. I have some trouble using the live-review function of acrobat workspaces. I remember this was a little different some time ago (might was Acrobat 9). I follow these steps that I learned form the AdobeTV-Video "Collaboration using Shared Reviews v

  • PowerMac G5 vs new Mac mini?

    I hope this is the right place to ask this (maybe I ought to put the question in the Powermac G5 forum as well...) I currently have a G5 Dual 2 GHz, and it's definitely starting to show it's age! I have been looking at getting a MacPro but the cost i

  • IPod Cover Flow can't handle ligatures.

    While the iPod Albums menu can display Tool's Ænima properly, in the Cover Flow screen this album comes out as nima. Has anyone else noticed similar mis-renderings with ligatures or accented characters? tt2

  • Problem during hierarchy load from ECC 6.0 to BW

    Hello, I encountered a problem during hierarchy loads from ECC to BW: I get the following in BW: Error when updating Idocs in Source System Diagnosis Errors have been reported in Source System during IDoc update: Once I go into ERP and look at the ID

  • Selecting multiple lines from ALV output for further validation

    Hi guru's,          i have created a ALV report with a check box in the output,i need to select multiple lines by checking 'X' in the check box after that i need to do further validation..like updating etc..how to read the selected lines( check box =