I am in need of ai script for arcing text

i am in need of ai script for arcing text

A little vague aren't we… Is this the kind of arcing you mean? Text along a curve or do you mean distorting into an arch like some plug-in can?
#target illustrator
var doc = app.activeDocument;
doc.defaultFilled = false, doc.defaultStroked = true;
var textPath = doc.pathItems.ellipse( 0, 0, doc.width, doc.height );
textPath.pathPoints[3].selected = PathPointSelection.ANCHORPOINT;
app.cut();
doc.selection = null;
app.redraw();
var tp = doc.textFrames.pathText( doc.pathItems[0], 0, 0, TextOrientation.HORIZONTAL );
tp.textRange.paragraphAttributes.justification = Justification.CENTER;
tp.textRange.characterAttributes.size = 60;
tp.contents = 'I am in need of ai script…';
var tpd = tp.duplicate();
tpd.translate( 0, -150 );
tpd.textRange.characterAttributes.size = 90;
tpd.contents = '…for arcing text?';

Similar Messages

  • Need  Bookmark creation script for Paragraph style. Anybody can help me pl?

    Need  Bookmark creation script for Paragraph style. Anybody can help me pl?

    Hi hasvi,
    I wrote a similar script which creates a bookmark on each page in the "main" text frame at the begining of the frame (the 1st insertion point). Here I attached the script and a couple of sample documents: before and after. It's more complex than what you want but you can use it as a starting point. In fact, you have to find a certain paragraph style, loop through every found item and insert a bookmark, say, at the beginning of the found text.
    The dialog box
    Bookmarks added
    Regards,
    Kas

  • SAP VB script for updating texts in purchase orders

    Hello,
    I am trying to create a SAP script for updating texts in purchase orders. It is in the last third - Item Detail,  Texts tab.
    The script is ok apart from the fact that it always deletes whatever text is in there and than add a new one.
    I would like to keep history in the texts tab and always just add one line to existing texts. Is there any way (command) how
    to keep existing texts and only add a new line to the top?
    Thanks a lot!
    Jan

    Yes, you are exactly right. I have already figured it out as well. I did not expect it would be that easy. But thanks a lot anyway for replying on this!
    Now I am struggeling with changing SAPLMEGUI in vb scripts for ME22n. Sometimes, there is SAPLMEGUI:0010 and sometimes SAPLMEGUI:0015. Even when the users have the same screens in the beginning the SAPLMEGUI number differs. They also do one item by hand and than it changes. It keeps changing between SAPLMEGUI:0010 and SAPLMEGUI:0015
    Is there a way how to have the same number of SAPLMEGUI or how to eliminate this issue?
    Thanks a lot
    Jan

  • Need a regular expression for the text field

    Hi ,
    I need a regular expression for a text filed.
    if the value is alphanumeric then min 3 char shud be there
    and if the value is numeric then no limit of chars in that field.[0-9].
    Any help is appriciated...
    thanks
    bharathi.

    Try the following in the change event:
    r=/^[a-z]{1,3}$|^\d+$/i;
    if (!r.test(xfa.event.newText))
    xfa.event.change="";
    Kyle

  • Need Help with scripting for Automator/AppleScript.

    Hi everybody,
    I am building a small app for my mac, What I need is a script that can rename a file that I drop on it.
    and example being:
    example.jpg
    (when I drop it on the app, I want the app to change the filename of the document to "Image.jpg"
    I have tried this with Automator, but it requires that I specify the file to be changed, what I need is something that will change the name of any file I drag onto it.
    I am using it for application specific files.
    Kind regards,
    Pete.
    iBook G4; 60GB Hard Drive, 512MB RAM, Airport Extreme    

    Open the Script Editor in the
    /Applications/AppleScript/ folder and enter the
    following:
    on open(the_file)
    tell application "Finder"
    set name of the_file to "Image"
    end tell
    end open
    Save this script as an application.
    (11347)
    this script compiled correctly; however when run it returned the following error "Can't set name of (the_file) to "Image.jpg"
    I am also given the option of editing the script or just quitting.
    thanks for your help

  • I need an action/script for image resizing with a "special" attribute

    Having a headache, nothing work so far the way I want it...
    So here's the deal: I have a bunch of psd files and I need them saved as jpegs in a fixed size - 450x590px.
    The filename of the jpeg should be the same as each psd and the images should be resized proportionate.
    The psds have irregular sizes, some are tall, some are square, some are wide, etc.
    I tried using the place function on a template, but that requires my input - choose what to place, then type the filename.
    Any ideas?
    Thank you for your input!

    elmoldovano wrote:
    So here's the deal: I have a bunch of psd files and I need them saved as jpegs in a fixed size - 450x590px.
    The filename of the jpeg should be the same as each psd and the images should be resized proportionate.
    The psds have irregular sizes, some are tall, some are square, some are wide, etc.
    I tried using the place function on a template, but that requires my input - choose what to place, then type the filename.
    So have both Portrait and Landscape images with varying size. and want to create jpeg from them that are 450x590 pixels in size.  Can the have Portrait and Landscape orientations.  If they all must be Portraits 450px wide by 590px high  your landscape images composition will not fair well.  For cropping landscape image to portraits image normally crops away  to much image content.   Content aware scale may work somewhat better then cropping to portrait the introduced distortion may be acceptable.
    If Portrait 450x590px and Landscape 590x450px is an acceptable solution.  I would go with a cropping solution for there will be no distortion and centered crop composition are usually acceptable.   It can also be done with a two step action used by an image processor script.  If you download my crafting action package. It has a plug-in script that can be recorded in an action to set a 45:59 centered aspect ratio selection which you follow with an Image Crop step.  You run the Image Processor  script have the action make the crop and the Image processor to resize the crop to fit into a 590x590px area.
    Crafting Actions Package UPDATED Aug 14, 2012 Changed AspectRatioSelection Plug-in script added Path support.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    12 Scripts for actions
    Example
    Download

  • Need help creating script for specific instance

    I am having trouble coming up with a working script for this part of the pricing form I am editing. I am trying to get the calculation fields to the right to change and populate in the respective field based on the selection in the Material Type dropdown. Would it be less of a headache if I made another text field to calculate the LE versions separately instead of trying to merge them into one field? I have attached screenshots below to give you an example of what I'm working with. Any help with this is greatly appreciated!
    Script I'm tinkering with at the moment:
    //Dropdown37 = Quantity Field
    //Type of Door IB = Material Type dropdown
    var x = this.getField("Type of Door IB").value;
    if ( x = 1468 ) event.value = x * this.getField("Dropdown37").value;
    if (x = 1202) event.value = x * this.getField("Dropdown37").value;
    else event.value = 0;

    The comparison operator in JS is "==", so change this line:
    if ( x = 1468 )
    To this:
    if ( x == 1468 )
    (as well as the other if-statement).

  • Need data loader script for Buyer Creation for R12

    Hi ,
    Anybody has data loader script for Buyer creation in R12. Please copy paste one line in the reply on this message.
    Thanks

    Hi ,
    Anybody has data loader script for Buyer creation in R12. Please copy paste one line in the reply on this message.
    Thanks

  • Script for validating Text fields or numeric fields

    I'm looking for a simple script that will check the entered data in a specific field.If i enter numbers in the name/last name field i should get a pop up message that entering numbers in this field are not allowed.
    (And vice versa regarding numeric fields).
    What is the script for that ?

    Hi,
    try this:
    //var reg = /^\d+$/;    // checks whether input contains ONLY digits
    var reg = /\d+/;    // checks whether input contains digits AND letters
    var check = reg.exec(xfa.resolveNode("#subform[0].#field[0]").rawValue);
    if (check == null)
        app.alert("Everything's fine!");
    else
        app.alert("Entering digits is not allowed!");
    You may want to replace
    #subform[0] with the name of the subform the field to check is located in and
    #field[0] with the name of the field to check for digits.
    Also, you may want to select any of the regular expressions, which fits best your needs. See comment in the above code-fragement for further information.
    Regards,
    Steve

  • Use Story to create a script for subtitle text

    I have found a way to use the Speech Analysis through After Affects to create subtitles. However, the film I am making is a documentary and in a foreign language. We have the transcripts of the translated speech and I need to get that into Premiere and eventually After Effects to create the visual subtitles.
    I have seen some threads on using Story to enter transcripts, but I'm new to this Story application and can't figure out how to use it for what I want. I need to assign the text I have to a specific place on the clip. Can Story (and/or Premiere) do this and how do I do it?
    I have assigned a scene number then some text, but nothing is showing up in the clip's metadata with the script assigned to it.
    Any suggestions? Any other ideas for getting text assigned to timecode points for subtitles?
    Thanks.

    If you are looking at attaching the story scripts (scene's) data to the clips metadata please follow the instructions from this thread
    http://forums.adobe.com/thread/1043216?tstart=0

  • How to make a script for find text object?

    Hi everyone
    I want to make a script for find and select text object and then find next, find next, and so on, but without any open dialog
    Is that possible make a script for this?
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.findGrepPreferences.findWhat = "(\[\x{2022}\])|(\x{25CF})";
    app.findGrep();
    thanks
    Regard

    You already have that. A script does not 'find, select, find next' - it finds all texts as soon as you execute the 'app.findGrep' command.

  • Html scripts for changing texts

    does anyone have an html snippet code for flashing text like on the hot news headlines at the bottom of the apple home page - i have located scrolling text - but not flashing, or changing text? thanks

    I just posted javascript snippet couple days ago to rotate images:
    http://discussions.apple.com/thread.jspa?messageID=7079863&#7079863
    The same method can be used for text head liners, however it's depend on how the head liners are supplied.
    If you have to supply the head lines, you are on your own; you'll have to update them.
    or you can use some ready made such as BBC: http://news.bbc.co.uk/nol/ifsnews/hi/frontpage/ticker.stm
    or you can use webclip, webclip makes part of a web page into Dashboard widget, then process Dashboard code into HTML code. Anyway, here is Apple header liners in webclip: http://hdl.50webs.com/Dashboard/Widgets.html

  • Need help writing script for Digital DAQ

    Hello,
    I am trying to write an aquisition program for digital input coming from a hall sensor.  I will be passing a magnet over a hall sensor on a motor and want to record the number of rotations.  I have pasted together a script based on various websites, but it isn't functioning the way I want.  I would like to be able to collect data points indefinately, or fixed, and then print out the resulting count.  I have attepted to use the ctypes wrapper in Python.  The NI functions remain unchanged though, so if you don't know Python it shouldn't be a problem to read.  I am using a NI PCI-6503. 
    NI PCI-6503
    NI PCI-6503
    NI PCI-6503
    The code:
    # C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage\Acq-Int Clk\Acq-IntClk.c
    import ctypes
    import numpy
    nidaq = ctypes.windll.nicaiu # load the DLL
    # Setup some typedefs and constants
    # to correspond with values in
    # C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include\NIDAQmx.h
    # the typedefs
    int32 = ctypes.c_long
    uInt32 = ctypes.c_ulong
    uInt64 = ctypes.c_ulonglong
    float64 = ctypes.c_double
    TaskHandle = uInt32
    # the constants
    DAQmx_Val_ChanForAllLines = int32(0)
    def CHK(err):
    """a simple error checking routine"""
         if err < 0:
              buf_size = 200
              buf = ctypes.create_string_buffer('\000' * buf_size)
              nidaq.DAQmxGetErrorString(err,ctypes.byref(buf),buf_size)
              raise RuntimeError('nidaq call failed with error %d: %s'%(err,repr(buf.value)))
    # initialize variables
    taskHandle = TaskHandle(0)
    max_num_samples = 1000
    # array to gather points
    data = numpy.zeros((max_num_samples,),dtype=numpy.float64)
    # now, on with the program
    CHK(nidaq.DAQmxCreateTask("",ctypes.byref(taskHandle)))
    CHK(nidaq.DAQmxCreateDIChan(taskHandle,'Dev1/port1/line1',"", DAQmx_Val_ChanForAllLines))
    CHK(nidaq.DAQmxStartTask(taskHandle))
    read = int32()
    CHK(nidaq.DAQmxReadDigitalU32(taskHandle,int32(-1),float64(1),DAQmx_Val_GroupByChannel,data.ctypes.data,max_num_samples,ctypes.byref(read),None))
    print "Acquired %d points"%(read.value)
    if taskHandle.value != 0:
         nidaq.DAQmxStopTask(taskHandle)
         nidaq.DAQmxClearTask(taskHandle)
    print "End of program, press Enter key to quit"
    raw_input()
    This script returns "Acquired 1 points" immediately, regardless of how many times the hall sensor has been switched.  
    I apologize for the sloppy code, but I understand very little of the underlying principles of these DAQ functions, despite reading their documentation.  Seeing as how the code does not return an error, I am hoping there is just a minor tweak or two that will be farily obvious to someone with more experience.  
    Thanks

    Hey Daniel,
    Most of this script is from http://www.scipy.org/Cookbook/Data_Acquisition_with_NIDAQmx. 
    I needed to run the ReadDigitalU32 function in Python loop because my DAQ device did not support timed aquistion and I don't have LabView.  
    import numpy
    import time
    import ctypes
    nidaq = ctypes.windll.nicaiu # load the DLL
    # Setup some typedefs and constants
    # to correspond with values in
    # C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include\NIDAQmx.h
    # the typedefs
    int32 = ctypes.c_long
    uInt32 = ctypes.c_ulong
    uInt64 = ctypes.c_ulonglong
    float64 = ctypes.c_double
    TaskHandle = uInt32
    # the constants
    DAQmx_Val_Cfg_Default = int32(-1)
    DAQmx_Val_Volts = 10348
    DAQmx_Val_Rising = 10280
    DAQmx_Val_FiniteSamps = 10178
    DAQmx_Val_GroupByChannel = 0
    DAQmx_Val_ChanForAllLines = int32(0)
    # initialize variables
    taskHandle = TaskHandle(0)
    max_num_samples = 10000
    data = numpy.zeros((max_num_samples,),dtype=numpy.float64)
    read = uInt32()
    bufferSize = uInt32(10000)
    def CHK(err):
    """a simple error checking routine"""
         if err < 0:
              buf_size = 200
              buf = ctypes.create_string_buffer('\000' * buf_size)
              nidaq.DAQmxGetErrorString(err,ctypes.byref(buf),buf_size)
              raise RuntimeError('nidaq call failed with error %d: %s'%(err,repr(buf.value)))
    # Start up DAQ
    CHK(nidaq.DAQmxCreateTask("",ctypes.byref(taskHandle)))
    CHK(nidaq.DAQmxCreateDIChan(taskHandle,"Dev?/port?/line?","", DAQmx_Val_ChanForAllLines))
    CHK(nidaq.DAQmxStartTask(taskHandle))
    #initialize lists and time 1 
    t1 = time.time()
    times = []
    points = []
    while True:
         try:
              CHK(nidaq.DAQmxReadDigitalU32(taskHandle,int32(-1),float64(1),
              DAQmx_Val_GroupByChannel,data.ctypes.data,uInt32(2*bufferSize.value)
             ,ctypes.byref(read), None))
              t2 = time.time()
             #data[0] is the position in the numpy array 'data' that holds the value aquired
             #from your device
             points.append(data[0])
             times.append(t2 - t1) 
             t1 = time.time()
             #Choose time interval between data aquisition
             time.sleep(.02)
         except KeyboardInterrupt:
              break
    #process the lists of points and time intervals as you so choose
    Thanks for the help!
    Paul

  • I need a "hide" script for Microsoft Excel

    Hi. I just "upgraded" everything, new Intel based Macbook Pro, and Office 2008 for Macs. Why did I upgrade? Good question! Anyways, when I used Office 2004 for macs, I used a macro to hide several rows so that I could view information in a condensed format. then, I would unhide, and have the entire spreadsheet once again.
    I am new to applescript, and have been trying to absorb as much as I can. So far, I wrote a script that can select and range, and fill in a color.
    Anyways, I need a script that can hide several rows (ranges?) in a spreadsheet, and then a script to unhide them again.
    Thanks!
    Timo

    Hello
    Perhaps something like this.
    It is based upon 'Excel 2004 AppleScript Reference' that you can obtain from the link below but NOT tested, for I don't have this application. Also Excel 2008 may vary.
    (* hide rows 1 through 5, 20 through 25 and 30 through 40 *)
    tell application "Excel"
    tell active sheet
    set hidden of range "1:5,20:25,30:40" to true -- hide
    end tell
    end tell
    (* un-hide rows 1 through 5, 20 through 25 and 30 through 40 *)
    tell application "Excel"
    tell active sheet
    set hidden of range "1:5,20:25,30:40" to false -- un-hide
    end tell
    end tell
    cf.
    http://www.microsoft.com/mac/developers/default.mspx
    Excel2004AppleScriptRef.pdf
    Table Suite > Table Suite Classes > Class: range (> properties > hidden)
    p.331
    Using the Excel Dictionary > How to reference cells and ranges
    pp.15-18
    Good luck,
    H

  • Need Help with script For Bulk Users Name & Description Updation

    Hi Guys,
    I have below requirement :
    We are having one windows 2008 stand alone server with 200+ local users (No Active Directory Account).
    1. Requirement is to update each account's "Full name" and "Description field" with same text. Which means , Full name and Description field will be same with same text. No other changes are required. )Attached the screenshot)
    Can you guys pls help me out with any scripting (vbs , powershell , DOS .etc etc) method to accomplish this task quickly as manual process is very troublesome and take long time.
    Any help will be highly appreciated,
    Thanks,
    Suvajit Basu

    Hi,
    I dont have any script but seeking for a help.
    Thanks,
    Suvajit Basu
    In that case you should read this first:
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
    Prewritten scripts can be found in the repository (Brent has already suggested one for you):
    https://gallery.technet.microsoft.com/scriptcenter
    If you can't find what you need and you can't write your own, you can request a script here:
    https://gallery.technet.microsoft.com/scriptcenter/site/requests
    Let us know if you have any specific questions.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

Maybe you are looking for