Fuzzy AppleScript Dialogs

Not sure if this is the right place for this to be, but here goes.
I use AppleScript for a ton of stuff. One thing that's been slightly bothering me is that it's not been updated for the rMBP. In the Editor itself, the "Run" button is clearly still fuzzy, and dialog boxes are fuzzy as well.
Is there something I can do besides wait on Apple to fix this?

@slrandall
I can confirm your issue:
I am now using a rMBP 11.3 (Mid 2014) with OS X 10.9.5, and previously used a MBP 2.1 with OS X 10.6.8 (Late 2006).
I too noticed that when running compiled Applescripts apps that were compiled on my non-retina MBP that they use non-retina resolutions and thus are blurry.
There is no apparent fix within AppleScript or other native Apple Software:
I tried to recompile them with the current Applescript Editor (Version 2.6.1 (152.1); AppleScript 2.3.2) as apps, but they still only remain non-retina.
But luckily there is a fix with a 3rd party freeware:
http://retinizer.mikelpr.com/  successfully scales up standard UI elements and fonts to retina resolution of any app dropped on it.
The process is non-destructive on the dropped .app bundles, but just creates an entry in a separate registry.
Apps can be individually "retinized" and de-retinized", or you can choose the global "retinize all apps" (on my Mac).
As Applescripts use mostly (or completely?) standard UI elements this is an acceptable fix for now.
@Apple:
It is desirable that Apple's own software should support all its hardware features out-of-the-box.
Please make AppleScript Editor compile retina compatible apps.
(Maybe fixed in Yosemite? Confirmation anyone?)

Similar Messages

  • Simple Applescript Dialog Box Issue

    Hi,
    I am writing a very simple applescript that sets a variable to some text entered by the user in a textbox, in a dialog. Unfortunately, the font that is used to display what the user types is virtually unreadable, and therefore not at all fit for the purpose.
    I have recently had some problems with my system font cage, that required an entire re-install of the operating system, when I downloaded the new Microsoft Office 2011, but that issue has been resolved, and I can not see how it would effect applescript.
    Is there any way that I can change the font that is displayed as the user enters text. A photo of the dialog at the moment can be seen here:
    [img]http://www.freeimagehosting.net/uploads/b5102a5dd2.png[/img]
    Thanks for any help you can give me,
    Ari

    looks like a system font has been replaced by another....
    you could try to check/repair your fonts using apple's font book.app... already tried it?
    open it up, select all fonts (cmd+a) and select check fonts from the menu...

  • Can AppleScript dialog configured to use high resolution on macbook retina?

    I've just got the macbook retina and noticed that script dialogs displays text in low resolution. Is there an configuration parameter that needs to be set to high resolution texts?

    There aren't any settings you can make or change for the dialogs from Standard Additions.  I don't know if there is an update planned - some of those look to be pretty old.

  • AppleScript - How do I make multiple dialogs display at the same time?

    Is it possible to make more than one dialog be displayed at one time with AppleScript? Thanks in advance.

    You can see what is available in the Standard Additions dictionary. There are a (very) few things you can fake, but AppleScript dialogs are designed for simple feedback.

  • How can I control modal dialogs in Applescript without a mouse?

    I am trying to use a Griffin PowerMate button to select between two options in an Applescript modal dialog and cannot seem to figure out how to do this. I can set a default button, but I want the user to select between two options (shifting the highlighted button) via the PowerMate. Does anyone have a suggestion?
    I can program the PowerMate to send/emulate a particular keystroke, but I do not know how to make the standard Applescript dialog respond to a keystroke, only a mouse action. I'm trying to create a mouseless interface.
    In short, I want the dialog respond to "Twist to the left and press the button to select A, Twist to the right and press the button to select B." Thoughts?
    Thank you.

    Your System Preferences > Keyboard Shortcuts > Full Keyboard Access preference will need to be set to "all controls", but it also depends on where the particular button is located in the dialog.  The tab key will highlight the buttons from left to right, shift-tab will highlight the buttons from right to left, and the spacebar will "press" the currently highlighted button.  In addition, the escape key will choose the Cancel button (if there is one), and the return key will choose the default button (if a default has been set the button itself will be lit).

  • AppleScript error on Tiger only: "can't make file into type alias"

    Hi,
    I'm successfully using this smart TextWrangler applescript from this webpage for opening files on the same folder as the current document:
    http://blog.ampli.fi/textwrangler-open-file-from-directory-of-current-file/
    It works fine on Mountain Lion.
    However, when I try it on Tiger 10.4.11, this error dialog appears: "TextWrangler got an error: Can't make [file] into type alias".
    The script basically gets the path of the current document in TextWrangler and posts a file chooser on such path.
    I guess these are the lines that Tiger doesn't like:
      set current_path to POSIX path of current_file
      set new_file to choose file default location (current_path) with multiple selections allowed
    open new_file
    After googling for the error "can't make [] into type alias", I tried to change such lines to:
      set current_path to (POSIX path of (current_file as alias))
      set new_file to choose file default location (current_path) with multiple selections allowed
    open new_file
    But, however, the same error remains.
    Do you have any idea on how could this work?
    Thanks!

    wow, 10.4...
    try this:
    set current_path to current_file
    set new_file to choose file default location (current_path) with multiple selections allowed
    open new_file
    I'm not certain when the standard applescript dialogs were updated to accept posix paths, but it may have been 10.5.

  • Dialog to tell users to wait?

    Is there a way in AppleScript to create a dialog (or something similar) to display a message to the user that they need to wait while things are set up for them? The script needs to be able to continue doing stuff while this is displayed, so "display dialog" and "display alert" are no good as they require a button to be clicked before the script can continue.
    I'm currently faking it by displaying a Finder Window of a folder called "Please Wait" and setting the background to an image I created which contains the message text, but this seems to have stopped working properly under Mavericks (the background image is no longer displayed, and also the window takes a while to appear).
    Is there a better way of doing this?

    A possible solution is to use a background Bash script that launches an AppleScript dialog, while the rest of the AppleScript continues to run. Same story with a Python script using the subprocess module to do the AppleScript dialog in a background process. The final '&' is shell script terminology for make this a background process, and it needs to be quoted to hide it from AppleScript.
    Here is the Bash approach. It is written to have certain default variable behavior, but these can be overridden with command-line arguments. I show both invocations from AppleScript below. Your subsequent AppleScript cannot launch a dialog while your background dialog is displayed, so you may need to play with the delay timing for coordination.
    Bash Script
    #!/bin/bash
    # Launch an AppleScript dialog using osascript.
    # Usage:
    # 1) Script defaults, no command line arguments: dialog.sh
    # 2) Script with arguments: dialog.sh delaytime message
    function ASDialog () {
    `osascript <<-AppleScript
      set msg to ""
        set dialogtime to "$1" as integer
        set msg to "$2" as text
        tell application "System Events"
            display dialog msg with title "Process Message" giving up after dialogtime
        end tell
        return quit
    AppleScript`
    # defaults are preceded by '-'
    GIVINGUP=${1:-45}
    UDIALOG="${2:-Please wait for setup...}"
    ASDialog $GIVINGUP "${UDIALOG}"
    exit 0
    AppleScript
    set test to " Test"
    set timing to 15 as integer
    do shell script "/path/to/dialog.sh " & timing & test & " &"
    -- the following will use defaults in dialog.sh
    --do shell script "/path/to/dialog.sh &"
    -- Rest of AppleScript code

  • Keyboard control of dialog box buttons

    Terribly sorry because I'm sure this must be answered more than a few times, but I just can't seem to find it!
    Can AppleScript dialog boxes activate buttons in response to keyboard input?
    Lots of Aqua apps let me use tab to move through the controls in a dialog box, then press space to activate. Even back before OS X, I could activate a button by typing the first letter (probably while holding down the command key).
    Can I script that sort of behaviour without using Studio?

    Thanks Cam -- Yes, you're right: I can use tab and space.
    I'm just using the display dialog command (e.g., 'display dialog "Hello, world" buttons {"Button 1", "Button 2"})
    I could change the prompt for the worse to take advantage of return and escape keys.
    Does Studio let me assign or otherwise use other keyboard controls in dialog boxes?

  • [cs3] Passing values back from "do javascript" to AS

    Hi folks,
    I am betting this has been discussed before but the search engine is batting a 0 today, so...
    I have an Applescript that needs to call Bridge and display a Script UI dialog. Easy enough even for a JS amateur like me and I have that part working well. However, I think I am missing something either in the JS itself or the way I am calling it from AS such that I get a value passed back into AS.
    My AS code is something like:
    set jsPath to alias "Path:To:Scripts:Folder:slugDialog.jsx"
    set slugDialogJSX to ""
    --Read the javascript
    set thisFile to open for access jsPath without write permission
    set slugDialogJSX to read thisFile
    close access thisFile
    --Do the javascript
    tell application "Bridge CS3"
        activate
        set jsResults to do javascript slugDialogJSX
    end tell
    --Process the results
    if jsResults ≠ "" then
        --would do stuff, but jsResults is always undefined!
    end if
    And loosely, my Javascript goes like:
    #target bridge
    var finalVal = metaSlugger();
    function metaSlugger() {
        // do stuff
        return someString;
    I suspect I simply need to do some final step to have the JS pass the value back, but I'm getting hung up on JS n00bness here.
    If I try "return finalVal" it complains that I am trying to return outside a function?
    Thanks in advance,
    Eric.

    Thanks for the suggestion.
    Well, as near as I can tell the "do javascript" will in no way, shape or form pass info back out to Applescript from Bridge, and I need to grab the long user name from system info there.
    To be honest, I was just trying to do a nice elegant dialog box with Bridge because Illustrator CS2 didn't know Script UI and I thought since everyone has CS3 Bridge on their machines already... But I've settled for 3 Applescript dialogs instead, so the fight is over.
    1.5 days tinkering with JS. 1.5 hours recoding in AS. Whee...

  • JSON from HTML embed Javascript to AS

    Hi,
    I know how to get JSON working if loading from external file
    by using LoadVars.
    But i don't know how to get JSON from the HTML embed
    Javascript and get to work in flash?
    I have tried different ways and search at google about
    related cases but nothing found yet.
    Can somebody help me?
    that's the code that i have used:

    Thanks for the suggestion.
    Well, as near as I can tell the "do javascript" will in no way, shape or form pass info back out to Applescript from Bridge, and I need to grab the long user name from system info there.
    To be honest, I was just trying to do a nice elegant dialog box with Bridge because Illustrator CS2 didn't know Script UI and I thought since everyone has CS3 Bridge on their machines already... But I've settled for 3 Applescript dialogs instead, so the fight is over.
    1.5 days tinkering with JS. 1.5 hours recoding in AS. Whee...

  • Applescript to open the Choose Folder dialog box and close the message after moving it

    I've been trying to figure out how to get the same functionality as the Windows version of Outlook has so that the open message gets closed when it's moved to another folder.
    It seems pretty simple to move a message to a pre-defined folder, but I can't find a way to open the Choose Folder dialog so I could choose the destination folder. I've looked through the dictionary, but couldn't find any direct way to activate the Choose Folder dialog. So I decided to use keystrokes for the job. Here's what I came up with:
    on run {}
        tell application "Microsoft Outlook"
            try
                set theMessage to first item of (get current messages)
                set folderID to the folder of theMessage
            on error errMsg number errNum
                set dialogReply to display dialog "Please select one or more messages to file away before running this script." buttons {"Abort"} default button 1
                return
            end try
            -- open the Choose Folder dialog
            tell application "System Events" to keystroke "m" using {command down, shift down}
            repeat
                delay 2
                set currentID to the folder of theMessage
                if currentID is not folderID then exit repeat
            end repeat
            -- Close the active message
            tell application "System Events" to keystroke "w" using command down
        end tell
    end run
    This is my first attempt to do anything with AppleScript..
    Now in addition to using keystrokes instead of Outlook built-in commands to open the Choose Folder dialog and to close the message, I also have another problem. Everytime I run the script from AppleScript Editor, everything runs fine, the message gets moved to the folder I choose and the message also gets closed. When I move the script to "~/Library/Application Support/Microsoft/Office/Outlook Script Menu Items" and start it from inside Outlook, Outlook  gets stuck after opening the Choose Folder dialog and I have to force quit Outlook. I added some debuggin to the script and found out that the script keeps running, but I'm unable to select the folder from Outlook and cannot continue.
    Anybody have an idea why this is happening?
    Regard,
    Kris

    (For the record)
    Unchecking "Submit crash reports" in the Firefox [[Options window - Advanced panel]] General tab simply toggles the default of the "Tell Mozilla about this crash so they can fix it" check box in the Mozilla Crash Reporter dialog (upon crash). It does not turn off the Crash Reporter itself.
    Related bug report:
    * [https://bugzilla.mozilla.org/show_bug.cgi?id=577221 Bug 577221 - Firefox doesn't remember "submit crash report" check box]
    The above information has been added to
    http://kb.mozillazine.org/Breakpad#Can_I_disable_Crash_Reporter.3F

  • Creating a Save As dialog box with Applescript for Excel 2008

    This is going to be part of a larger script. I'm trying to figure out how to make the default save location to where the file opened from and the default file name to the current filename in the dialog box.
    Here is what I go so far...
    tell application "Microsoft Excel"
    tell active workbook
    set myFile to choose file name with prompt "Save file as:"
    end tell
    end tell
    I'm very new with working with Applescript, so at this point I have been piecing together code snippets.
    Any help would be great and thank you

    The choose file name command supports a default location parameter that tells it where to open the dialog:
    set myFile to choose file name with prompt "Save file as:" default location (alias "Macintosh HD:Users:username:foldername:")
    So you need to look at the Excel dictionary to determine the path to the current file and insert it into the script. Every version of Excel has slightly different dictionaries so the version you're running is critical to getting the right syntax.

  • Applescript buttons returned from display dialog

    Hi!
    I have been learning Applescript for about a month and found the following issue which I thought was an easy implementation.
    On the "text returned" I get the error condition described. Do not understand!
    Any help would be appreciated.
    display dialog ("ENTER COMPANY NAME") with title ("TOTAL SHARE SPECIFICATION")
    buttons {"Cancel", "Company"} default button "Company" default answer ""
      set BUTTON_Returned to button returned of the result
      set CompanyName to text returned of the result
    error "Can’t get text returned of \"Company\"." number -1728 from text returned of "Company"
    MacBook 6.1     OS X Yosemite     Vn 10.10.1
    Script Editor  Vn. 2.7 (176)
    Applescript 2.4
    Regards

    No question that Applescript can be frustrating to learn. Many things about it have to be figured out by trial and error and when dealing with scripting applications all bets are off. The application designer can pretty much do as they want so what works in one app might not work in another even though you are using the same and correct applescript
    I find Introduction to AppleScript Language Guide by Apple to be a good source of answers and usually always have it open when I'm scripting  for quick reference.
    Spend some time getting familiar with the script editor. It is intelligent and can usually steer you in the right  direction when it comes to debugging.  Especially get use to and pay attention to the colors it assigns to items in your script.
    For example in your original script notice the colors of Button_Returned and CompanyName (your variables) and compare those to result and button returned. Also notice how text returned is a different color from button returned even though both are essentially the same thing. This is an indication that something is not right and it is where the error message occurred. (for a list of the default colors used open the Script Editors preferences and look at the Formatting tab).
    Notice  also how the editor formats your scripts, again the way the script gets formatted can tell you a lot if there is an error.
    Finally the error messages while cryptic can offer some clues. In your case the error message was
    error "Can’t get text returned of \"Company\"." number -1728 from text returned of "Company"
    generated by the line
    set CompanyName to text returned of the result
    The last part of the error message is essentially the line that caused the error after evaluation. So here result evaluated to “Company” which doesn't seem right, display dialog returns a record.
    Finally there is the log statement which will print its value to the log window
    Hope this helps
    regards

  • Applescript Display Dialog Default Answer Rendering Issue

    After I installed Lion, I started having issues with Applescript rendering a dialog with a textbox.
    This is the sort of thing I end up seeing:
    The text box in the dialog doesn't render properly, and it's not possible to enter anything into it.  I've played with the display dialog parameters but it doesn't matter if I give an empty string for the default answer or other text, the behaviour is always the same.
    Does anyone have any ideas as to what the issue might be?  I suspect I might need to reinstall Lion, but I'm not sure that's even going to clear up the issue.
    Thanks in advance.

    Tried replacing 'Standard Additions' osax, dumping editor prefs, dumping ALL user prefs (not recommended for faint of heart), using a different copy of Script Editor. Nothing helped.
    The user account displaying the bug is an old one; likely updated continuosly from the days of Tiger or earlier.
    A std account on the same drive, which merely went through the Snow Leopard -> Lion transition, does not exhibit the edit-text display bug.
    So I bit the bullet, and used Migration Assistant to move to a new account on a clean install of Lion on a spare hard drive. 3.5 hours later, the Applescript edit text display bug is gone.
    As far as I can tell, all docs, Apps etc. made it through intact.
    If that continues to look true over the next few days, I'll try using SuperDuper! to copy the new drive back to the older, faster HD.
    Perhaps some other Lion bugs'll also go away now that I've got a cleaner install.

  • Applescript Save As PNG without dialogs

    Does anyone know how to force the dialogs that sometimes appear when applescripting a save as PNG to never ever appear? The Photoshop CS4 Applescript ref doc doesn't mention any options about this.
    Thanks in advance,
    - Alex Zavatone

    Well, this is an old post, but maybe someone else needs the answer. Here's what worked for me:
    set destinationfolder to "MyHardDrive:MyFolder:"
    set currentFilepath to destinationfolder & "MyFileName.png"
    set saveOptions to {class:PNG save options, interlaced:false}
    save current document in file currentFilepath as PNG with options saveOptions appending no extension with copying
    Applescript won't tell you if the destination folder doesn't exist. Instead, the save dialog box will pop up.

Maybe you are looking for

  • Does iCloud save my data more than once when i back it up?

    I only have about 75 contacts and 165 pictures, which is the only thing I have on iCloud and the only thing I want to have saved. My iCloud keeps telling me that my storage is full but theres barley anything in it? It's a 5GB but still it shouldn't b

  • Structuring complex ABAP server proxy

    Dear all, I'd like to sub divide the logic of an inbound server proxy in ABAP. In a normal report, i would use a "perform" routine for that. As far as i know, I can not create such routines in the execute_asychronous method of the proxy. So what is t

  • How do I extend the end of a video clip?

    Hi, I have placed my video clip in my composition and at the end of it, I want to extend the last frame of that video all the way to the end. Just freeze the last frame. How do I do this? I searched this forum using search terms like "extend" and "fr

  • Can I install RAC in my pc computer?

    I am learning RAC, trying to install RAC on my PC computer. Both computer are dell, same configuration, and each computer has two network cards. I have another USB external hard disk, used for the storage, is that doable? Now I will try to install li

  • Exif data in RAW Canon image  : timing question

    In Photoshop CS 6 ex ( creative cloud ), when I open a Canon T3i DSLR RAW image it does not give the time the picture was taken to the second, only to the minute.  In my old Photoshop CS 3, Canon raw images are identified to the second. For my work I