Script to insert a character with a given font

Hello,
I must be silly but I have searched the web for hours and could not find a solution to my "simple" problem:
I  would like a script to do this:
1. set font (eg MT Extra)
2. insert a character based on unicode (eg F080)
3.revert font to previous font
This vould allow me to insert any character of any font and then continue typing my text with the regular font.
Thank you for our help

For something basic like this you should check out the documentation that comes with ESTK, under the Help menu. "Adobe Intro to Scripting" is a good place to start.
Anyway, assuming you've got your text cursor blinking in some text, try this:
myIP = app.selection[0];
myIP.contents = "\uf080";
myIP.appliedFont = "MT Extra";
Ariel

Similar Messages

  • In Font Book OS 10.8.5 how do you insert a character with Font like you could in 10.6

    In OS 10.6 I could go >edit>special characters: view glyph, glyph Catalog, Font: <font name> and I would see a table of each character in a font. Then, I could select a character and either drag it to my document or click Insert Font in the lower right hand corner and it would put the character into the document.
    How do I do the same thing in OS 10.8.5? How do I insert a character into a document through fontbook or any other manner?

    You need to use another app for this, like Ultra Character Map or Popchar.
    This should only be necessary if you are using a non-standard font, which may not be a good idea (since there is no guarantee your glyph will be seen by anyone else).  If the character exists in Unicode, you should be able to find it in Character Viewer and input via double-click or drag/drop.
    If you provide examples of what you need to input, I can perhaps tell you how to find them.

  • Apple script to insert a character

    I would like to create commands ( fn+f1 f2 f3.....) that would insert special characters while I am typing in Pages. Since there is no macros support I thought it would do the same job without having to use a third party application.
    I don't know applescript so well so I am asking for your help. Can anybody write a script I can run in pages, that insert every time I press fn F1 ( i am on a laptop ) and for fn F2.
    I work in journalism and I have to use special characters in my text so indicate bold and other attributes to the text.
    Thanks!

    jfmebo
    A suggestion how you might do Tom's suggestion:
    +Pages > Preferences > Auto-Correction > Auto-Correction: > Symbol and text substitution > Replace > option b > With > left angle bracket b right angle bracket+
    Same for option i, but note that option b is actually ∫ on the keyboard and option i is the dead key for the ˆ accent. If you use neither in your normal writing this should work for you.
    if you need to have a forward slash for your closing mark up of bold or italic, just make it option shift b and option shift i.
    You could also look at the following 3rd party solutions:
    http://www.macupdate.com/info.php/id/8999/simplekeys
    http://www.macupdate.com/info.php/id/6265/keyboard-maestro
    http://www.macupdate.com/info.php/id/14352/spark (free)
    http://www.macupdate.com/info.php/id/12170/butler (free)
    Peter

  • Insert character with umlaut/accent

    How do you insert a character with an accent or umlaut into Appleworks 6? This may seem like a basic question, but I can't find it in any of the drop-down menus or the 'help' section. I particularly need German characters, such as 'ö' and 'ß' (both of which I copy/pasted there, but don't want to have to do that every time!). I am used to using OpenOffice or Microsoft Word.

    Welcome to Apple Discussions!
    Inserting umlaut/accented characters is fairly straightforward; it requires an [Opt]+[key] (=press [Opt] and hit [key] while holding [Opt]), which then either produces a character of its own or modifies the immediately following key.
    Some examples of such non-english characters:
    - [Opt]+[s] = ß, [Opt]+[d]=ð, [Shift][Opt][k] = , etc.
    Some examples of accenting:
    - [Opt]+[`] followed by [key] tries to put a down-stroke accent on [key]
    Ex.: [Opt]+[`][a] = à,
    - [Opt]+[n] [key] tries to put a tilde on the letter [key]
    Ex.: [Opt]-[n][o] = õ,
    - [Opt]+[e][key] triesd to put an up-stroke accent on [key]
    Ex.: [Opt]+[e][e] = é
    But, instead of me trying to give you a complete listing, see if you have a little "Stars-and-stripes" icon in the right portion of your menu bar. (If not, select "System Preferences..." from the "" menu item on the far left; in its window, click on the "International" icon, and then on the "Input Menu" tab; check the "Keyboard Viewer" if it isn't already checked; close the "System Preferences" window.)
    Select the "Show Keyboard Viewer" from the "Stars-and-Stripes" menu in the right portion of your menu bar, and you'll get a "live" guide to your keyboard. As you press modifier keys, the keys in the viewer change to their correspondingly modified (extended) function. So, pressing [Opt] highlights a couple of keys: these are extended modifier keys: [Opt] makes [e] into the highlighted [’] key, indicating that it attempts to put the [’]-like accent on the following letter.
    Only those combinations work that exist in the font you are using; For example [Opt]+[e][s] produces "´s" since there is no [’]-accented [s] in most fonts.
    This system has been with the Macintosh OS's since their inception---certainly as long as I remember it.
    If you have checked, "Hungarian" in the "International/Input Menu" system preference, and then selected that in the "Stars-and-Stripes" menu as your mode of entry, the flag changes into the Hungarian flag, and your keys will produce symbols according to the Hungarian layout, regardless of what the imprint on the actual keys says. The Keyboard Viewer, of course, tells you which key does what now. Since you ask about "ß" ([Opt]+[s]) and "ö" ([Opt]+[ u] [o]), which occur in German, you may want to switch to the German keyboard layout. Of course, some keys will no longer do what their imprint says, but the "Keyboard Viewer" can always remind you of their "German" function.
    Alas! The more recent, and far more capable method using UNICODE (accessible by checking the "U.S. Extended" = "Stars-and-Stripes" with a little "U" option in the "International/Input Menu" system preferences, and then selecting the "U.S. Extended" mode of input from the "Stars-and-Stripes" menu) is not supported by AppleWorks 6.2.9: it crashes if you type anything into any of the AppleWorks' modules. And, since Apple is now developing "iWork" and "iLife", AppleWorks will probably never accept UNICODE.
    Hope this helps, Tristan
    G4 PowerBook   Mac OS X (10.4.5)  

  • Inserting a special character with GREP styles

    Hi.
    I wanna define a GREP style that makes this: if I write Bluetooth I wanna that a registered trademark is added at the end of the word but with superscript format. Is it possible?
    Thanks in advance.

    No, GREP styles only apply formatting, they cannot insert characters. Use a regular find & change to do so.
    (There is a thinking-outside-of-the-box solution. If you have access to a font creating utility, you can create a character 'h' with TM attached to it. Then you can use a GREP style to automatically apply this custom font to just the 'h' of 'Bluetooth'. See http://indesignsecrets.com/insert-a-special-character-with-grep-styles.php.)

  • How to insert special character from Oracle form builder 10g

    Dear all,
    I need help. how to insert special character like 'Superscript or Subscript ' from oracle form builder 10g. I had try in Oracle form builder 6i with press ALT+ASCII code in the text item and it work, but in the oracle form builder 10g this method doesn't work... would you like to help me...somebody please...
    Best Regard,
    Dedy P.T.

    What do you mean by insert ... from Forms Builder? Do you mean you want to add it as text in a string of pl/sql code or as part of boiler plate text (label) or a value on the Property Palette?
    For special characters you would need set NLS_LANG to something that would support the characters you want to use. For the Builder to see the change, you would need to set NLS_LANG to something like:
    NLS_LANG=AMERICAN_AMERICA.UTF8
    This can be done in the Windows Registry or system. As I mentioned, this will only apply to the Builder and will have nothing to do with a running form. For running forms you would need to set this in default.env. As for things like super and sub scripts, these are font formats and not necessarily characters. For the most part, I don't believe these are supported in Forms.

  • Bash script - sqllite insert problem

    So, I'm making a bash script that inserts a config file into a database, but I can't get it to work.
    This is my best attempt so far:
    name="bashrc"
    location="/home/user/.bashrc"
    content=`cat "$location"`
    sqlite3 testdb "insert into dbase values ('`echo $name`','`echo "$location"`','`echo "$content"`')"
    the table is
    create table dbase(name text, location text, data text)
    I had a hard time trying to figure out how I'd be able to get $variables to work (because of the quotes) and this echo style seems to work, but there seems to be no way to insert the config file into the database.
    plaintext files seem to work no problem, but when I'm trying to insert some config file, it spits out errors. (It seems like it's trying to execute the file somehow?)
    Last edited by initbox (2009-08-29 15:28:49)

    initbox wrote:I was thinking the single quotes were stopping bash from replacing $variables with the content, hence the echoes.
    your single quotes are inside a double quote, so to bash they're just another character in the string.
    I'm still getting an SQL syntax error, so bash is no longer getting in the way, but this thing is a true nightmare. What next? This turned out to be way harder than I expected, I'm just doing this as a "fun" learning experiment.
    Your error is probably because I was escaping the quotes for bash, and I should have been escaping them for sqlite. In sqlite, escaping a quote is done by doubling it, so ' is escaped to '' (that's two apostrephes side by side, not a double quote. Compare '' and ").
    This untested sed command might work:
    content = $(cat $location | sed "s/\'/\'\'/g")
    The \'s are escaping the quote from bash, what its really doing is replacing ' with ''.
    Dusty

  • Need script to insert records

    Hi all,
    I have to insert table LOCAL with entire contents of table REMOTE, minus any duplicates. Both tables have identical structures just hold different years of data. End result needs to be 1 gigantic table of all years. The tables have 7 indexes on each. Each table has about 20 million records. Any suggestions?
    I do not know PL/SQL well. Given a generic script I should be able to figure it out.
    Many thanks

    I'm sorry I should of mention that the year data in both tables are overlapping.
    It was recommended by the vendor to purge historical data off. This alleviated the bogging down of the production database with querying very large tables. So every couple years the database was cloned to an archive database and used for reporting purposes.
    The end result: we have an administrative nightmare. The goal is to get all historical data into 1 reporting db.
    There is actually 4 archive dbs I am trying to merge into 1. ie 1 database has some 2001, all 2002-2003, some 2004. The 2nd has some 2004, all 2005-2006, some 2007. This is a financial/payroll database containing records with many different dates. For example on the finance - this particular table I have requested for help om a query has 4 different dates - -transaction date,, approval date, a check date and a reconciliation date (which may be in that year or not, or never has been reconciled) ....
    This was the concern for the duplicates.
    Thank you

  • How to insert special character in sgm file and interprete it without isoents while opening in FM9.0

    I have an sgm file which contains special characters in different languages.
    <!DOCTYPE MANUAL PUBLIC "-//SWE-XXX//DTD XXX MANUAL-DTD 2.0//EN">
    <MANUAL LANG="CS">
    <TITEL>
    Polish characters: &oacute;&ecirc;&iquest;&ntilde;&aelig;&Ntilde;&AElig;&Ecirc;&yen;&Oacute;&pound;
    Czech characters: &eacute;&igrave;&oacute;&iuml;&aacute;&oslash;&egrave;&iacute;&ugrave;&ograve;&uacute;&Og rave;&Igrave;&Eacute;&Oacute;&Uacute;&Ugrave;&Egrave;&Oslash;&Iacute;&Aacute;&Iuml; aacute: &aacute;</TITEL>
    </MANUAL>
    Is there any way to insert special character directly in sgm file, so that it won't have to be interpreted by isoents mapping rules?
    isoent.rwr interpretes oacute as:
    entity "oacute" is fm char 0x00F3;
    But I would like to use 0x00F3 directly in fm file, so that if any additional character is needed - I won't have to update isoent files
    I've tested already:
    &#x00F3;
    &x00F3;
    &0x00F3;
    but with no luck
    Is there anyone who could help me with it?
    I will really appreciate your help
    /Joanna

    Hi Michael. Thank you for your reply.
    There is no declaration within sgm file itself - but while opening the file I use sgml application definition with the following settings:
    Default API client:  FmTranslator
    SGML character encoding:  ISO Latin1
    XML character encoding:  UTF-8
    Namespace: Enable
    CSS2 Preferences:
    Generate CSS2: Disable
    Add Fm CSS Attribute To XML: Disable
    Retain Stylesheet Information: Disable
    Entity locations
    Entity search paths
    C:\Program Files\Adobe\FrameMaker9\Structure\sgml\isoents
    So as you can see, character encoding is set to ISO Latin1 (there is no way to use UTF-8 encoding in sgml files)
    Typing ź or ć in sgm document and opening it with framemaker sgml application - I receive: ¿æ and message: "Non-SGML character found; should have been character reference"
    Everything works fine when I type f.ex.: &x016B; and insert appropriate reference lines into isolat1.rw and isolat1.ent files
    But what I would like to avoid is editing those isoent files each time new character is be needed.

  • Flex application works locally, fails when online (connecting to PHP script to insert row into DB)

    Hi everyone,
    I've got a Flex application that works wonderfully when I test it on my machine locally. It uploads files and send variables to a PHP script (that inserts them into a DB) with no errors when I run it locally. As soon as I put it online, the upload continues to work but something between my Flex application and the PHP script fails because no data is committed to the DB. I know the PHP script works fine - not only does it work when I run the Flex application locally but when I go directly to the PHP file online, a new empty line is added to the DB.
    I initially thought that this was a cross domain issue so I added the following to the root of my hosted account:
    <cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    <allow-access-from domain="*.MYURL"/>
    <allow-http-request-headers-from domain="*.MYURL" headers="*" secure="false"/>
    </cross-domain-policy>
    I based this off of what I found online which seems to have done nothing for me. I'd also be happy to provide an error message but I don't get one when I debug.
    Any thoughts would be greatly appreciated.

    Use a network monitor to see if the Flex app is truly requesting the right URL.
    -Alex

  • How to insert a JavaBean in a given form in forms 9i ?

    How to insert a JavaBean in a given form in forms 9i????
    Hi,
    Would somebody tell me precisely the required steps to insert a javabean into a given form?
    Indeed, I tried with the slider sample: I create a bean area field, but when i attempted to insert the class name in the specific field in the form properties, I had an error message like "Could not find the class name". Although, the class needed does exist in some folder on my computer, I see it. When I run my form on the web, nothing happened in my form, and the bean area was blank !!!
    I don't know what should i do? is there any particular setting to carry out?
    Thank you very much in advance..

    Mohammed,
    the bean's jar file must be in teh Forms90_Builder_Classpath to instantiate the bean in teh Forms Development environment and should be in teh Forms90/Java directory at runtime. Also, at runtime, add the jar file to the archive_jini tag of your application.
    Frank
    Ps.: Check the Forms9i collateral on otn.oracle.com/products/forms for Java whitepapers.

  • Bash script to insert item in a alphabetical list

    I would like to use a bash script to insert a new "source" file into a list of sources which occurs within another file.
    The file in question is quite long and contains many other things. However the list of sources abides by the format below.
    [snip]
    SOURCES = \
    _add_datasource_.m \
    _add_line_series_.m \
    ylabel.m \
    ylim.m \
    zlabel.m \
    zlim.m
    [snip]
    How might I insert a new source file in alphabetical order. I'm assuming there is a fairly simple script to do such.
    TiA

    #!/usr/bin/env bash
    if [[ $# != 1 ]]; then
    echo 1>&2 "Usage: ${0##*/} fileto_insert_inSOURCE"
    exit 1
    fi
    MAKEFILE=Makefile.in
    TMP=/tmp/tmp.$$
    awk -v new="$1" '
    /^SOURCES =/ { in_src = 1 }
    in_src && ! done && $1 > new {
    # New file goes here
    printf(" %s \
    ", new)
    in_src = 0
    done = 1
    in_src && ! done && ! /\$/ {
    # New file must go after the last entry.
    # Put  on old last entry.
    printf("%s \
    ", $0)
    # replace current $0 with the new file.
    $0 = sprintf(" %s
    ", new)
    done = 1
    ! /\$/ { in_src = 0 } # NOT in SOURCE
    { print } # print current line
    ' $MAKEFILE >$TMP
    mv $TMP $MAKEFILE

  • Sql sript for Insert of data with repeating values

    It has been a long long time since I had to do write and use any SQL scripts, please forgive the question. I used to use a script to insert values into a table as part of my job. I have forgotten what the script I used was and since lost all my Oracle note books and other DBA material.
    I did a search and went through 30 pages of results, I didn't see what I'm looking for.
    The data is from one large file that is appended at the end and sometimes updated somewhere in the middle of the set which is considered new data. I am not concern with getting the data out of the file, I got that handled but the insert into the table - transactions - is where I'm lost.
    I used to use a script to load the data, about 6 years ago, and it would load the file, exclude the data that was already in the table and insert the new data and the data with the changes.
    The data columns are date, time, reference, transaction code, location, debit amount, fee amount, balance.
    The date repeats but the time and reference values are unique.
    Any help with this script is appreciated.

    Hi,
    welcome to the forum..!
    You can use Oracle's merge statement to (update + insert) data into a table ... if the data exists update it with the new values and if it does not, then insert it.
    Here's a link to get you started...
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9016.htm
    Since, the data is from a file, you could create an external table on the file and directly do a select from the file.
    MERGE INTO bonuses D
       USING (SELECT employee_id, salary, department_id FROM employees
       WHERE department_id = 80) S
       ON (D.employee_id = S.employee_id)
       WHEN MATCHED THEN UPDATE SET D.bonus = D.bonus + S.salary*.01
         DELETE WHERE (S.salary > 8000)
       WHEN NOT MATCHED THEN INSERT (D.employee_id, D.bonus)
         VALUES (S.employee_id, S.salary*0.1)
         WHERE (S.salary <= 8000);in the above example, the
    SELECT employee_id, salary, department_id FROM employeesis the source data. instead of loading the file into a temporary table and then merge into the target table , you could read from <<<external_table_on_your_file>> and then do a merge into the target table.
    http://www.oracle.com/technology/products/oracle9i/daily/sept19.html
    If you encounter any problems, please post the full description of your error.
    Thanks,
    Rajesh.
    Please mark this/any other answer as helpful or answered if it is so. If not, provide additional details/feedback.
    Always try to provide create table and insert statements to help the forum members help you better.

  • Is it possible to insert coloured glyphs with InDesign CS5?

    I write about card games and use (multiple) red 'heart' and 'diamond' symbols. If it is not possible to insert coloured glyphs, can anyone suggest a quick way of getting around this problem (other than copy/paste)? Many thanks, Zeb

    Sandee,
    Do you actually load a typeface (cardshark bold, perhaps) and then press a key (h or d) to make the heart or diamond? Then all you need are a character style for red and a GREP style to automatically change the letter h in cardshark bold to the character style.
    Uh -- no. Under those circumstances it would not work. A GREP style can change all letters 'h' and 'd' to red, but not "just those in cardshark bold". This would only work if this font has been applied in a paragraph style that also has the GREP style added.
    It does work, however, with non-Symbol fonts such as Arial Unicode MS, where you'd insert the correct glyphs via the Glyphs palette. This works because the heart and diamond glyphs are encoded into Unicode.

  • Euro Character with US7ASCII

    Hi,
    We are using Java based Internet application with below characterset configuration.
    Client Machine OS : Windows
    Browser Character Encoding Setup : ISO-8859-P1 (http-equiv="content-type" content="text/html; charset=iso-8859-1")
    JDBC Type : Oracle 10.2.04 JDBC Thin Client (ojdbc14.jar, classes12.jar)
    Oracle DB Character Set : US7ASCII
    When we try to insert Euro Character, it is getting inserted into DB properly (Hex:80) and getting displayed properly in browser too.
    I know Euro is not part of US7ASCII Char set. I would like to understand
    how the PASS-THRU scenario is happening here ?
    how ISO-8859-P1 is showing the Euro Symbol on Browser?
    Thanks in advance,
    Thanks,
    dan

    This is a combination of the following three effects:
    1. HTML browsers generally try to do their best to properly display websites created by people not following required standards. iso-8859-1 has been historically regarded as the character encoding of US and Western European Windows workstations. This has not been correct for a long time already, as Microsoft extended the ISO code page and created what is known as MS Code Page 1252 (windows-1252). Browsers try to correctly display pages that include Windows-specific characters by treating the pages as windows-1252 even if they are defined as iso-8859-1.
    2. For performance reasons, Oracle JDBC Thin uses simplified conversion from Unicode UTF-16 to US7ASCII by simply ignoring the upper byte of each two-byte code. This allows such bytes as 0x80 to go through to the database. In one of the new JDBC releases, we plan to introduce a flag to force the conversion to go through standard path so that replacement characters are used as it is in case of OCI.
    3. As the HTML pages are marked as iso-8859-1 and not windows-1252, the 0x80 code coming from the browser is not correctly converted to Java UTF-16. The code should be converted to U+20AC but it seems to be converted to U+0080.
    -- Sergiusz

Maybe you are looking for

  • Assigning Different GST codes in one invoice

    Hi Can anyone please guide me how to enter multiple gst codes in one single invoice (fb60 & miro). Whenever i tried to enter two different tax codes in tax code system don't accept it. Regards Axeb

  • What's Best Anti-Virus Program for a Mac?

    I know that most people think that Macs don't get viruses, but I'm a computer teacher in a public school and we recently got the W97M virus. It's in the Microsoft Word program, and although it may not hurt specifically our iMacs, it has caused other

  • Item Description change at marketing Document

    Hi experts , I have a typical scenario . Let me describe in detail . For example -- For Customer A -  Item A is called as Apple For  Cusotmer B -  Item A is called as Banana Similarly Customer C......D,E...... And user need that information at  marke

  • Triggering of processchain

    Hi, How can we trigger a processchain B after completion of processchain A through event parameter process (step by step) with in the BW system? Thanks Sunil

  • 2-Step Verification for Apple Mail on OS 10.7.5

    Can someone verify if having 2-Step Apple ID verification work for Apple Mail? I use iCloud email but on my MacBook (OSX 10.7.5) Mail program, I can't access it. I tested my iCloud Account via Settings and it can't log in. I discovered that by turnin