Pass the text as string applescript

Hello everyone,

I tried to write the apple script and now script returns me results as '11,22,33' as a text

How can I convert String {11,22,33}

solution with "item 1", "item 2", etc. does not work because sometimes 11 can be 111 or just 1. The same thing with another number. I think the script must include the comma brand new number, but I don't know how to do

sashaosonia wrote:

I think the script must include the comma brand new number, but I don't know how to do

  set AppleScript's text item delimiters to ","
  set someText to someText's text items
  set AppleScript's text item delimiters to {""}

Tags: Mac OS & System Software

Similar Questions

  • by passing the array of strings of Teststand to LV dll

    Hello

    I wonder, why is it not possible to pass an array of strings 1 d of TestStand to a dll, which is compiled with LabView. By the way the PropertyObject works very well, but as parameter category "Array of Strings" exist in the call dll TestStand pane, it should be possible to pass an array directly. I get an empty dialog box, where I try to view the contents of the array passed directly.

    Why it does not work?


  • Pass the URL query string variable to Captivate?

    I created a Flash button for my total Captivate, it uses PHP to update a CSV file with the user name and the id of course.

    The user name is from a URL string. If it was just a Flash file, I could pass the page HTML using FlashVar values. My flash button is not exposed until the last slide in the room of Captivate. How can I get this value so that my Flash button can pass it?

    If the value passed to the FlashVar to the Captivate swf, is a local variable that can be called from the Flash button? I know I did not adequately explain this right, but maybe someone can decipher this enough to get the gist.

    Hello

    Just write a javascript in html function that returns the user name.

    Call this function in your flash movie using the external interface call

    Hope this helps

    Delighted Kishore.

  • How can we create ARC of the text as string options in illustrator?

    Hello

    I read illustrator js doc much time but you could not find any function that is responsible for the CRA the text as.

    Warp options in illustrator object-> deformation-> Make with Warp Envolop.

    Any body can help me, how can we have achieved that.

    Thank you

    Sana Ullah

    Hi Sana, distortion of the envelope is not scriptable.

  • size of the string must adapt automatically to the size of the text

    Hello

    Whenever I passed the text to the channel indicator, my size of the string must match the size of the text automatically. Is this possible?

    GerdW wrote:

    OK: you will find a calc function the size of the text somewhere in the range of photo features. Use the result of this function to set the properties of your string indicator... (Don't have LV on hand to search for this function.)

    Totally agree with Gerd.

    What has mentioned, it is something like this:

    Andrey.

  • Beyond a simple text on the Clipboard in the text using the key field

    Dears

    You would tell me is it possible of past a simple text on the Clipboard into a field of text using button with javascript or something else?

    What is my problem?

    I have prepared a simple form using adobe acrobat dc. This form will be used in the local network. so, we can open the form of google chrome. There is a large text field in this form and we have passed the text to the Clipboard in there.

    normal, when we are using adobe acrobat to open the form, it is easy to right click and select "PASTE". but we need open the form using google chrome. in this case, no item to paste from the Clipboard.

    Please help me.

    Concerning

    In General, no, it's not possible.

    However, if you apply a certain change in the registry then work could . I told you how do it here: paste it from the Clipboard text box in form

  • 4.1 pass data to the text field new page deletes the data after colon

    I work with APEX 4.1 in Amazon RDS, an upgrade is not possible.

    The problem is that if I click on a link in my report and pass the description field to the next page in a section of the text, if there are two points in the data, any data that was in the description after the colon disappear. The research that I did suggest to disable the app escapes in safety, but that seems to work only for version 4.2, the option does not appear in the 4.1.

    Usually, I prefer to use a record id rather spend a bunch of string from one page to another. However, you can try to use a collection to store the values of passage. Once the new page is loaded, you can extract the value from the collection in the element you are interested in.

  • AppleScript to save the text from the view of results

    Hello, I am working with applescript that takes the results in the window at the bottom of the editor, like this

    Now I try to write it in the text editor as a text but Applescript say that he can not with "can't turn"class IFAP in the text.

    and if I try to save the results as a list, applescript supports error 10000 (textEdit has encountered an error: failure AppleEvent written in popup)

    It's that everybody knew how can I solve this problem?

    Here is the text of the script, but it won't work on your mac because it uses application to imagine Photo.

    thisFile to Choose file with guest "choose an image file:

    say application "Imagine the Photo.

    the value thisImporter for import graphics thisFile

    if the component error of thisImporter is not equal to 0 then

    thisImporter close

    display the dialog box "Not an image file that quicktime recognizes."

    return

    end if

    the value {x, y, xDim, yDim} to the limits natural of thisImporter

    define thisDocument to make new document window properties {size: {xDim, yDim}}

    the value the destination of thisImporter to thisDocument drawing

    thisImporter trace

    thisImporter close

    -The section which follows should be replaced according to the pixel value class

    the value pixelValueRect to {x, y, xDim, yDim}

    the value pixelValues1 to get the pixel values of thisDocument with properties {class of pixel values:pixel in the rectangle, rectangle boundaries: pixelValueRect}

    thisDocument close

    -class (pixel points) as a list

    -' class pCol' as a list - цвета координаты разнесены по классам с именами, приводим к списку и

    end say

    say application "TextEdit".

    activate

    make a new document

    the value text of document 1 to pixelValues1 as list

    -the text of the document 1 pixelValues1 as a value list

    -Save the document 1 in ' / Users/IMac/Desktop/LastUpdate.txt '.

    end say

    pixelValues1

  • Convert a Boolean trigger in the text string

    Hello

    I would like to know if it is possible to convert some text buttons in a single variable text string.

    Let me try to explain:

    I have 3 buttons: Simulation, send, Quit

    Now, I want to use a case structure, in which it is possible to switch between these 3 options.

    So if you press the button for a second, I would have a string of text with the text: send.

    If I press Quit, having to turn into Quit, text string even if I can connect this string to the structure of the case.

    Is this possible? It sounds easy, but I can't figure out how do it in a simple way.

    How I did it: Boolean convert (0.1), these values multiplied by a number,

    for example (1,2,3), but to make a deal with (1,2,3) structure and write the right text in a text string.

    But I think it can be done much easier, isn't it?

    Thank you!

    Hello

    Check the attached VI. I think this should help you. The mechanical action of the buttons are "switch until released. You can change it according to your requirement.

    The second example uses the Structure of the event.

    Kind regards
    Nitz

    (Bravo to give good answers, mark it as a solution if your problem is resolved)

  • Text string in array of integers - with law enforcement in the text string-

    Hello

    I have a text string containing the measurement frameworks.

    I want to place each image in a first time 0, 11 x 11 array (with the same order in the text file).

    In the figure below, I tried to convert it to a table, but the table only contains the first "column" in the text file.

    Any suggestions?

    Crows is right, your channel is very dirty, with a variable number of spaces, lines starting with spaces and space + newline delimiter.

    In such cases, I like "scan of the channels for tokens", because it can automatically enter into identical consecutive separators in a single. Here's a quick example.

    Your lines are of variable length, a 2D picture seems inappropriate, because all rows have the same number of elements. For example, consider a table 1 d of clusters containing the tables 1 d.

    (Of course, it would be cool "worksheet in table string" could deal directly with identical consecutive separators as found here, so thank you for supporting my idea.) He deserves more than 24 voice )

  • Dynamically change the color of a string (part of the) text

    Suppose that consider the string Hello "it's the first Blackberry Application" including the color of the text in black, but a few changes need to change the color of the Blackberry to RED as below

    previous - Hello this is the first Blackberry Application

    After - Hello this is the first Blackberry Application

    I tried with split the text into several fields and change the color but I need single solution for Richtextfield / EditField / text box.

    plese give me some suggestions...

    Thanks in advance

    Only ActiveRichTextField will do this for you.

    You define regions, join fonts and/or attributes to the regions, including the background and foreground colors.

  • Display the text string on the Capture window

    Hello

    To capture is used difference two camcorders. What I have is a display of text pasted on the capture window. I do daily catches and what is new. Don't know how the text string is found on the capture window. Capture saves the film along with the display of text. I need to remove this information in order to have a full, clean with only the material captured.

    Attached a picture showing the information that needs to be removed.

    I use Adobe Creative Suite CS6 with Premiere Pro CS6 on a HP with Windows 7 pro 64-bit z800.

    Thank you!

    capture-00022.jpg

    vlcsnap-00022.jpg

    Well.

    I played on several bands and this one has its own text. It is burned in. This is most unexpected.

    Other assets play very well, as expected.

    Thanks for the idea!

    Now, I know.

  • Keep the text perpendicular to the base line when you use the string.

    Is there a way to keep the text perpendicular to the base line when using the warp function?  I'm trying to reproduce a decal with curved text.  When I use the string to get the text that is curved like the original, the letters are slightly tilted.

    You could try to make each letter on a separate text layer, then use Image > transform > free transform to adapt the letters in place.

    A lot more control over the placement of the letter and size that warp text offers.

  • editing the text in the string does not change the distorted text!

    I have the text in a basic text box. I applied a string in base to give a higher arc. Okay, now I want to change the size of the text.

    I select the text and reduce the size of text in the character palette - nothing happens.

    I double click on text box that isolates the text, double click again to select the text, drag to select all the text, then reduce the size of the text in the character palette. the Red preview reduced but when I click, the distorted text is always the same size as before!

    I'm sure that just by clicking on the text and by reducing the size of the text (in the character palette) worked before...

    Try the object > envelope distort > edit content.

    The size can be changed by editing the envelope (the text is always dimensionnera to the size of the envelope.

  • AppleScript cannot change the font of the text layer

    I used Applescript to create a text layer and specify its properties, but when I specify the font I get a compilation error:

    Impossible to define 'class NTR' to 'TradeGothic-Bold ". Unauthorized access.

    That sounds like a kind of permission error.

    Here is a little simplified script:

    Tell application "Adobe Photoshop CS4"

    say current document

    do new layer of art Properties {name: "File name", type:text layer}

    say the text object layer of art 1

    the value {content, size, stroke color, position, type} {"thefilename", 12, {class:RGB hexadecimal color, hexadecimal value: 'CC0000'}, {2, 12}, text of paragraph}

    set the font to "TradeGothic-"BOLD""

    tell the end

    tell the end

    tell the end

    If I put the police manually and use 'get properties of the text object in layer art 1', the Script Editor returns (with a long list of other properties):

    "" police: 'TradeGothic-"BOLD".

    so I think that I've specified the name of the font correctly at least. In the list of properties returned by the Script Editor, the font is blue like above, but all other property names are purple. It's I have to say something.

    Well, after some trial and error, I answered my own question. Here's what worked:

    Tell application "Adobe Photoshop CS4"

    tell the active document

    new layer art with properties {name: "File Name", layer type: text}

    the text of the layer 1 of the art of storytelling

    the value {content, size, stroke color, position, type} {"thefilename", 12, {class hex color: RGB, hex value: 'CC0000'}, {2, 12}, paragraph text}

    tell the end

    set the font for the text of art layer 1 to "TradeGothic-"Bold"object

    tell the end

    tell the end

    Maybe someone who understands OOP and/or better than I do, may explain why it worked and my first try didn't.

Maybe you are looking for

  • Kindly cancel my upgrade I have cloud storage

    Kindly cancel my upgrade I have cloud storage

  • "Region error" on Tecra 750DVD

    I reinstalled my Tecra 750DVD (new HARD drive) on the recovery CD.I can play region 0 DVD ok and some region 2 ones (freebies of newspapers).I get "Error region" play some region 2 discs - those sold commercially.How can I "say" the machine that I am

  • When runnig windows update of xp professional edition SP3· Error: 0 x 80244019

    [Number of error: 0 x 80244019] El sitio doesn't web ha sown a problema y no worm can show page Quebec filedThe web site find a problen and cannot display the page you are trying to viewThis is the message I get when I run windows update. I have XP P

  • Error 0x800B0100

    Hi all I install a suite of Nokia on my pc. My PC is windows xp sp 3. Whenever I try to install the file system on nokia gives error 'Problem with the Setup file' error code 0x800B0100.  Pls help to solve the problem

  • "Cannot find network hardware" after re-installation of Windows XP

    I had to reinstall windows completely because of a system error message that says that a critical SYSTEM32 file was missing. So I did, but now my computer is missing features network and internet, doesn't let me install a network and does not recogni