Can you add appliedCharStyle while creating hyperlink

I noticed that the menu to create a hyperlink manually now has an option to apply a character style to the text source. Is it possible to apply a character style while adding a hyperlink in JavaScript? I am using findGrep() to iterate through a large document adding hyperlinks to found text. I currently use changeGrepPreferences (see bottom of script below). But I thought it might be faster to use the new feature.
If it is possible to do apply the character style in while adding the hyperlink, how would I do it? My attempt below does not work.
var myDoc = app.activeDocument;
var charastyles = myDoc.characterStyles.everyItem().name;
app.changeGrepPreferences = NothingEnum.nothing;
app.findGrepPreferences = NothingEnum.nothing;
app.findGrepPreferences.findWhat = '[MAP][ELO][PR]S:';
var foundCodes = myDoc.findGrep()
for (var i = foundCodes.length - 1; i >= 0; i--) {
switch (foundCodes[i].contents)
    case "MEPS:": 
var _charStyle = app.activeDocument.appliedCharacterStyle = "Hyperlink";  //
var _hlinkSource = app.activeDocument.hyperlinkTextSources.add(foundCodes[i]);
    var _destination = app.activeDocument.hyperlinkURLDestinations.add("http://www.meps.com");
    app.activeDocument.hyperlinks.add(_hlinkSource, _destination, _charStyle) // <----this works without the _charStyle
break;
//three more cases go here
alert ("Not a good selection."); exit ()
//app.changeGrepPreferences.appliedCharacterStyle = 'Hyperlink'; <--- I have been using these lines to change the character style
//myDoc.changeGrep();
app.changeGrepPreferences = NothingEnum.nothing;
app.findGrepPreferences = NothingEnum.nothing;
alert ("Done")

If you know basic HTML you can add whatever you want after you export from Aperture, but I don't know of a way to add arbitrary hyperlinks within Aperture. Adding minor changes to the basic HTML Aperture produces is easy, but if you have a lot of extra changes, you might want to use another tool designed for more customized web pages.

Similar Messages

  • Can you add hyperlinks to the images created in the slideshow on the command menu?

    can you add hyperlinks to the images in the slideshow created
    from the command menu? thanks

    On 30 Aug 2008 in macromedia.fireworks, mediastream13 wrote:
    > can you add hyperlinks to the images in the slideshow
    created from
    > the command menu?
    Unfortunately, those slideshows aren't all that flexible. I
    don't think
    that Adobe supplies the source for the Flash slideshows. But
    if you use
    the spry slideshow, you should be able to edit the HTML in
    Dreamweaver to
    add links.
    Have a look at one of Project Seven's graphics presentation
    products -
    Lightshow Magic, Slide Show Magic or Image Gallery Magic.
    They're $95
    each, and extremely flexible in what you can do with them.
    http://projectseven.com/
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/contact.php

  • Add restriction while create item by "Old Purchase Orders and Templates"

    We are consider to add restriction while create shopping cart item by "Old Purchase Orders and Templates".  After implement such restriction, create item by copying old shopping cart item is not allow for particular matereial group number.
    Is there any BADI can be used in our case?  If there is no, could modify HTML template the only solution?
    Regards,
    Donald

    Hi,
    If the restriction is for certain group of people,then you  have 2 options:
    1.Make the link invisible for those group of people by implementing the BADI BBP_SC_MODIFY_UI.In the BADI,first check the user attributes like particular role and based on that make the link invisible.
    2. Assign certain role to the  group of users who should not see the link "Old Purchase order and templates".You can hide this link in the MENU by removing this from the lits of trasctions in that particular role.In PFCG,go in that role and then under MENU tab,remove the entry for "OLD PURCHASE ORDER AND TEMPLATES".
    BR,
    Disha.
    Do reward points for useful answers.

  • Can you add multiple soundtracks to a Keynote show?

    I know you can add one but can you add several? How?

    Yes it is but I hit a glitch, they tell me to use the QuickTime inspector to create a sound for one slide only. Once you click the QuickTime icon the second command is " Click the movie or sound object to select it" I am assuming they are telling me to select the sound file, and drag it into the audio box in the inspector,,...when I go back to the QuickTime icon the controls are still grey,..what am I doing wrong,..the wording of these things leaves a lot to be desired,....if you try to select it while in the QuickTime filed the field dissappears,...confusing....

  • How can you add a where clause using "OR" with applied ViewCriteria?

    [JDeveloper 10.1.3 SU4]
    [JHeadstart 10.1.3 build 78]
    I am using JHeadstart, but have a question probably more in the ADF area. On the JHeadstart forum I asked:
    "I am overriding JhsApplicationModule's advancedSearch in order to be able to search in childtables. I created transient attributes, display those in advanced search and in the overridden method I check if any of these are filled by the user and create a where clause like 'EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> AND <another column in childtable> LIKE '<value supplied by user>)'. I add this whereclause using ViewObject.setWhereClause.
    So far so good and it works. However, if the user selects 'Result matches any criteria', combining setWhereClause and the normal advancedSearch QueryByExample implementation using ViewCriteriaRow do not provide the desired result, since the ViewCriteria and the setWhereClause are AND-ed together, which is fine if the user selects the (default) "Results match all criteria" (everything is AND-ed) but not the "Result matches any criteria", since then every criterium is OR-ed together, except for the setwhereclause criteria and the set of ViewCriteriaRows, they are AND-ed.
    I looked if I could specify that a WhereClause will be OR-ed to existing applied ViewCriteria, but no luck. Do I have to rewrite also advancedSearch's ViewCriteria implementation and write an entire setWhereClause implementation to be able to "OR" every criterium? Or any other suggestions? Can I look at the entire Where clause and rewrite it (after applyCriteria and setWhereClause are called on the VO)?
    Toine"
    Sandra Muller (JHeadstart Team) told me today: "This sounds like a JDeveloper/ADF issue that is not related to JHeadstart. The question is: how can you add a where clause using "OR" if there are already one or more ViewCriteria applied?
    To simplify the test case, you could create a simple ADF BC test client class in a test Model project without JHeadstart (in the test class, use bc4jclient + Ctrl-Enter), in which you first apply a few ViewCriteriaRows to a View Object and also add a where clause.
    Can you please log a TAR at MetaLink ( http://metalink.oracle.com/ ), or ask this question at the JDeveloper forum at http://otn.oracle.com/discussionforums/jdev.html ? (This what I am doing now ;-))
    Thanks,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting"
    Anyone knowing the answer or am I asking for an enhancement?
    Toine

    Hi,
    Can you SET your whereclause as follows ?
    ('Y' = <isAnd>
    and EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> AND <another column in childtable> LIKE '<value supplied by user>))
    OR ('N' = <isAnd>
    AND EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> OR <another column in childtable> LIKE '<value supplied by user>))
    )

  • Can you add page numbers to the PDF version?

    Can you add page numbers to the PDF version?

    Hello saradianapasik,
    If you start with a document created with Acrobat Pro, or exported from your word processor as a .pdf, then you should include page numbers in that originating application. After you have exported a .pdf form from FormsCentral, it is no longer editable.
    I hope that helps,
    Brian

  • How to add invoices while creating Batch Payment in Oracle Apps R12

    Hi all,
    how to add invoices while creating Batch Payment in Oracle Apps R12
    Thanks

    Can you elaborate your problem in detail ?

  • HT5622 how can you add a group to contacts to email or message?

    How can you add a group to your contacts to email or message a group?

    There are example OMB commands in the MDL referenced in the post below;
    http://blogs.oracle.com/warehousebuilder/newsItems/viewFullItem$198
    Look at the body of the expert you will see examples of creating joiners, filters, aggregators, constants etc all via OMB.
    Cheers
    David

  • Can you add a Search?

    Can you add a search on a Advanced List Pane bound to a node of your BO?

    Hi William,
    yes by creating your own query which also includes the node, this should be possible. In standard I assume you could check that for instance on the Sales Quote OWL. I have in mind this has also the items included.
    Edit: I just read that you ask for a advanced list pane instead of OWL. I suppose this is somehow as well possible but I would need to try myself...
    But I would try creating you own query, binding this against your list pane and check it
    Cheers,
    Jens

  • Can you add things to the Firefox button menu?

    Regarding the orange Firefox menu button--can you add things to it? I want to add the zoom option to that menu. I an add the + and - zoom buttons to the toolbar, but I want the zoom option in the orange Firefox button menu itself instead. Is that possible?

    Have you considered using the keyboard commands for Zoom? <br />
    https://support.mozilla.org/en-US/kb/font-size-and-zoom-increase-size-of-web-pages
    Or use '''{Alt}''' to show the Menu bar - then hit '''{V}'''for the View menu - then '''{Z}'''for Zoom - then use '''{I}''' to zoom in or '''{O}''' to zoom out from the keyboard.
    Adding menu items isn't easy, plus the internal commands for the new menu item would need to be coded. You would either have to locate an extension which adds those menu items or learn how to create an extension that has that feature.

  • Can you add plugins to imovie 11

    Can you add in new transitions to imove11???

    No you cannot. There are no plugins for iMovie 11.
    Final Cut Pro X allows plugins, and you can even create your own transitions and titles with Motion.

  • Can you add armenian as an international language

    Can You Add Armenian for an international keyboard

    atomicallan wrote:
    Can You Add Armenian for an international keyboard
    While waiting for Apple, you could use the one that comes with the UniKey app.

  • Can you send an event created on your iphone to a contact from your iphone?

    Can you send an event created on your iphone to a contact from your iphone? If so I can't figure it out. I have asked this question before and somebody told me you could if you were a mobileme or exchange user. Well I am a mobileme user and if it can be done, I can't figure it out.
    Any help appreciated.

    From the calendar app on my iphone? I know I can do it from iCal and from mobileme. When I look at the event on my iphone I can look at the invitees, but I do not see where I can add or delete an invitee. Maybe I am just missing it.

  • Can you add two LDAP Diretories in Communications Manager 7.15?

    In Communications Manager 7.15, I am integraing with a MS Active Directory. I have a rather large domain and several domains within the main forest. Can you add two unique LDAP directory entries and pull users from two different domains using SSL?
    For example,
    domaina.hq.myfirm.com
    domain2.hq.myfirm.com

    Yes, you can create up to 5 unique directory integrations as long as they are all the same type, i.e. MSFT AD.
    HTH,
    Chris

  • Text editing  - can you add text editing options on the 'in-browser editing'

    Text editing  - can you add text editing options on the 'in-browser editing' tool?

    You can only replace existing content, not edit the page structure. Refer to the respective help sections.
    Mylenium

Maybe you are looking for