How to add stroke to text frame in Illustrator using Applescript? - applescript

set mytexts to make new text frame with properties {contents:"Annonation " & g & ":" & param_Text, kind:area text, position:{(-150), (new_Var)}, width:(checkValue3 - checkValue1), name:"notes"}
Above code is used to create text in Illustrator using Applescript. How to add stroke or border to the created text frame. Any references or advice is highly appreciated.

So it's a little hard to tell what you're asking for.
Are you trying to add a stroke to the outside of your text frame, like you might do in the appearance panel? Something like this?
If so, then you're out of luck. There's no access to extra strokes and fills from within scripting (source).
But maybe you just want to apply a stroke to the text, to give it an outline. Something like this.
In that case, this is the AppleScript you want to use
tell application "Adobe Illustrator"
-- customize this as needed for your app
set theFrame to (make new text frame in current document with properties ¬
{contents:"My text", kind:area text, name:¬
"notes"})
set theRange to text range of theFrame
set stroke color of theRange to {red:45, green:20, blue:128}
end tell

Text Path.
set properties of text path of mytexts to {stroked:true, stroke width:0.1}

Related

Editable TableOfContents boxes in each Powerpoint slide header

I would like each slide in my Powerpoint 2013 presentation to have at the top an outline showing the location within the current chapter, something like:
I would like Powerpoint to create new slides based on this slide template, so I edited the Title+Content slide-type as above, in the Slides Master; I used the slide's default Title box for the title of my first section (Intro), then copied/pasted that box to obtain the boxes for the other presentation sections (Methods, Results).
I expected that, in the newly created slides, I'd be able to edit each of these boxes (highlight current section & current slide position), so as to suit the slide where I am at the moment, in terms of title and current slide.
However, I can only click inside the first box (the default one that Slide Master gave me) whereas the others are just "drawn" in the background. Also, even after clicking in that first box, the existing text disappears rather than being editable.
Also, is there a way to automate this slide layout somewhat? I used white/black dot circle symbols to indicate within-section current-slide number, but is there a smarter way to make this in Powerpoint based on slide count within the current section?
At the very least, I'd like to have editable text boxes at the top of each new slide, with pre-determined names that can nonetheless be edited, and (imporantly) that can be updated all at once from the Slide Master, in case I decide to change my chapter/section names.
Not a trivial task for Powerpoint, I know, but I'm hoping that the knowledgeable good people on here might give some good suggestions/workaround, for which I am grateful in advance.
You can trick PowerPoint into adding editable shapes to the slide master by inserting a text placeholder and changing to shape to your desired shape. A little clunky but it works.
See this link.
Alternatively, you could write some PowerPoint VBA to create the slides with the desired objects.
Update
I use PowerPoint 2013. I downloaded your PPT. I wasn't sure whether you were referring to the textbox with the text "replace text ... " or the main text box for the slide. I'll assume you're referring to the textbox with the text "replace text ... " (mind you ... the answer is still the same).
It looks like you're adding a text box to the slide master (which is not what I think you want). Add a text placeholder like the screen shot below which you add from the Slide Master ribbon. Once added you can change the default text formatting (which is a set of bullet points), and you can change the shape (in this example to a rounded rectangle). I don't believe (?) that its possible to create default text for the text placeholder in Slide Master that appears as default text when the default slide is created using the master.
Then when you leave master mode, you have an editable text box. If you reset the slide, this shape reverts to its default formatting and position, but any text you've added is retained.
You can also change the default text box on the slide master in the same way (shape, shape formatting and text formatting).

How to customize UI Dialogs in Wix to modify location/size of Labels

I've been wanting to modify the location of the InstallDirDlgDescription text (Click Next to install to the default folder or click Change to choose another.)
The x co-ordinate of this text by default is X="25" and the text overlaps with my logo (I've customized the dialog to change the banner to my logo).
I know I can change the VALUE of the String by doing -->
<String Id="InstallDirDlgDescription">This is a custom message.</String>
But is there a way of changing the location of the text (I want to set X = "5" so that the text shifts to left and doesn't overlap with my logo) ?
Thanks !
Use the UI element to change control attributes. See http://www.joyofsetup.com/2012/07/14/localizing-more-than-strings-in-wix-v3-6/ for examples.

change font color in evernote mac with automator

Can any one give some hints for a script that on a keystroke changes the font color in Evernote? I need to let's say, change the color beforehand. Like am writing and press a hotkey and then on, text is red... another keystroke black again. If I use the color picker I have to change colors after I wrote them.
Thanks
dan

Is it possible to set color of texts in dialog boxes of Applescript?

Is there any way that the text's color inside a dialog box of Apple script can be changed???
Please reply
Thanks in advance.
No, there is not a way to change the text color in a AppleScript dialog box. However, you can change other aspects such as displaying an icon, making the text field display the letters as bullets (for things like passwords), etc. See AppleScript Wiki for more info.

Using AppleScript to hide Keynote Text Fields in A Slide

I am no AppleScript Jedi, I've only done a few simple things, but I haven't been able to figure this one out and could use some help:
My wife uses slides for her Art History courses and would like to use the same slides for exams (sans identifying names). Rather than create a new presentation, I'd like a tool that iterates through the slides and hides the text fields.
Looking through the Keynote dictionary didn't give me any clues as to how to approach this, any ideas?
AFAIK, with Applescript you can only access the title and the body boxes of the slides. If the text you wish to remove is consistently in either of these boxes the simplest solution would be to loop through the slides replacing that text and then saving a copy of the document.
tell application "Keynote"
open "/Path/To/Document"
repeat with currentSlide in slides of first slideshow
set title of currentSlide to " "
set body of currentSlide to " "
end repeat
save first slideshow in "/Path/To/Document without answers"
end tell
If the text is in a container created with the textbox tool, I don't think you can solve it with Applescript, but Keynote uses an XML based file format, so you could try doing it by editing the XML with your scripting language of choice. The XML schema is documented in the iWork Programming Guide.

Resources