Automating hyperlink creation

Hi all,
I'm a Frame AND scripting noob. I'm migrating several long docs from Word to Frame 10. I'd like to figure out how to automagically ID and add hyperlinks to URLs written in plain text after conversion. This sounds like a job for ExtendScript.
My mental model looks like this:
1. Wildcard search for "www.*" or similar;
2. Copy url text;
3. Open HYPERTEXT toolbar in Frame UI;
4. Set 'Command:' to 'Go to URL';
5. Paste 'http://' and copied URL text into box;
Pretty simple non paper, but is this feasible using JScript or EScript? Thanks in advance!

Mugg,
You have to change your mental model from being too close to the UI. It would work like this:
1. Wildcard search for "www.*" or similar; or: use the current selection
2. Copy url text; no need to use the clipboard, just store it in a variable
3. insert a marker of type "Hypertext" at the start of the text range
4. set marker text to "message URL http://" + stored website.
5. apply a  character format to the text range from marker until end of found/selected text.
The last step limits the "hot" area to that range.
Now, go ahead!
- Michael

Similar Messages

  • Automated Glossary Creation

    Currently re-designing our publishing workflow from custom legacy FrameMaker system to InDesign.
    Trying to work out best method of handling automated glossary creation. Currently using mark-up tags in Frame to create a numerical tag for reference to a Glossary term which can then be searched within Frame through a script and each term selected in a book/document to be defined. These terms are defined within a database and then can be searched within the data-base with reference to a specific document while also keeping the data-base current with all such defined terms.
    Any similar type of tagging available in InDesign where a custom tag can be created with a numerical reference (or something similar)?
    Have a load of other questions and would appreciate an Adobe publishing workflow consultant contact if such is available.
    Thanks.
    Jason

    Here is a (horrible!) Javascript to add a tag to any selected text and automatically prompt for an attribute value. You need to add a basic XML framework around your text first, else it will Not Run. (Select a text frame, call up the Tags panel, and then select "Autotag" from the dropdown menu for a basic structure.)
    In this script you might want to adjust the name of the XML tag (the first "tag" in the double 'add' line) and the attribute name ("id" in the second part of the 'add' line).
    In this form, the script does not allow you to re-define a previously tagged item (use the Structure panel for that) or to remove a tag (use Untag in the Tags panel). Running it twice on a selected text will add a new nested tag! (But as always, anything is possible with a longer/smarter/less horrible script.)
    if (app.selection.length==1 && app.selection[0].hasOwnProperty("baseline") && app.selection[0].length)
    tagId = prompt ("Tag with ID:", '');
    if (tagId)
      app.selection[0].associatedXMLElements[0].xmlElements.add("tag", app.selection[0]).xmlAttributes.add("id", tagId);

  • JS for search and creation of automated hyperlinks from the results

    Hi,
    Is it possible to create a javascript that searches a PDF document for a part of phrase (with regexp) and then creates a hyperlink of the whole row where the phrase is?
    I'll explain a little bit more....
    In a PDF catalog I have part numbers of 10 digits that always starts with "5010" and then there's a short describing text of the product and finally a price at the end. The part no and the short description is separated with two spaces and a "pipe" (|) and so is also the price separated from the describing text.
    Example: 5010101538 | This is the describing text for the product | $4996
    Now, I want create a hyperlink to my website so each product row is clickable in Acrobat. The link is static at first and at the end the product no (10 digits) comes. After the product no there is also the extension .aspx (http://www.myweb.com/pd_5010.......aspx.
    I know that this should be done at the creative stage but the DB connection plugin for the parts does not support url linking in InDesign..... so I'm stuck with Acrobat for my 900 links that needs to be created. ;)
    Since I'm new to JS in Acrobat I hope there is help out there!
    Kindly
    Magnus

    Hi Magnus,
    It's a bit tricky, but it can be done. Contact me by email for more info.

  • Automating album creation for a new project?

    I have several projects (such as specific event shoots) with the same basic set of albums for that project (some regular albums, some smart albums). I'll have albums for specific subsets of the events (for my sports shots, there's Individuals, Action, Team, etc.).
    I'd like to automate the creation of these albums, as it gets a bit tedious having to create a bunch of albums manually for each new project I create. I looked at Aperture's automator actions, but couldn't find anything related to album creation. Is there such a thing?
    Thanks...
    David

    I'm pretty sure this is scriptable using AppleScript. I haven't really had the need to script Aperture so I can't tell you the exact syntax without looking it up myself, but it shouldn't be too hard if you've ever used AppleScript. Just open Script Editor, go to File > Open Dictionary... > Aperture and you'll get a list of the scriptable actions Aperture has available.

  • Automating the creation of a HDinsight cluster

    Hi,
    I am trying to automate the creation of a HDinsight cluster using Azure Automation to execute a powershell script (the script from the automation gallery). When I try and run this (even without populating any defaults), it errors with the following error:
    "Runbook definition is invalid. In a Windows PowerShell Workflow, parameter defaults may only be simple value types (such as integers) and strings. In addition, the type of the default value must match the type of the parameter."
    The script I am trying to run is:
    <#
     This PowerShell script was automatically converted to PowerShell Workflow so it can be run as a runbook.
     Specific changes that have been made are marked with a comment starting with “Converter:”
    #>
    <#
    .SYNOPSIS
      Creates a cluster with specified configuration.
    .DESCRIPTION
      Creates a HDInsight cluster configured with one storage account and default metastores. If storage account or container are not specified they are created
      automatically under the same name as the one provided for cluster. If ClusterSize is not specified it defaults to create small cluster with 2 nodes.
      User is prompted for credentials to use to provision the cluster.
      During the provisioning operation which usually takes around 15 minutes the script monitors status and reports when cluster is transitioning through the
      provisioning states.
    .EXAMPLE
      .\New-HDInsightCluster.ps1 -Cluster "MyClusterName" -Location "North Europe"
      .\New-HDInsightCluster.ps1 -Cluster "MyClusterName" -Location "North Europe"  `
          -DefaultStorageAccount mystorage -DefaultStorageContainer myContainer `
          -ClusterSizeInNodes 4
    #>
    workflow New-HDInsightCluster99 {
     param (
         # Cluster dns name to create
         [Parameter(Mandatory = $true)]
         [String]$Cluster,
         # Location
         [Parameter(Mandatory = $true)]
         [String]$Location = "North Europe",
         # Blob storage account that new cluster will be connected to
         [Parameter(Mandatory = $false)]
         [String]$DefaultStorageAccount = "tavidon",
         # Blob storage container that new cluster will use by default
         [Parameter(Mandatory = $false)]
         [String]$DefaultStorageContainer = "patientdata",
         # Number of data nodes that will be provisioned in the new cluster
         [Parameter(Mandatory = $false)]
         [Int32]$ClusterSizeInNodes = 2,
         # Credentials to be used for the new cluster
         [Parameter(Mandatory = $false)]
         [PSCredential]$Credential = $null
     # Converter: Wrapping initial script in an InlineScript activity, and passing any parameters for use within the InlineScript
     # Converter: If you want this InlineScript to execute on another host rather than the Automation worker, simply add some combination of -PSComputerName, -PSCredential, -PSConnectionURI, or other workflow common parameters as parameters of
    the InlineScript
     inlineScript {
      $Cluster = $using:Cluster
      $Location = $using:Location
      $DefaultStorageAccount = $using:DefaultStorageAccount
      $DefaultStorageContainer = $using:DefaultStorageContainer
      $ClusterSizeInNodes = $using:ClusterSizeInNodes
      $Credential = $using:Credential
      # The script has been tested on Powershell 3.0
      Set-StrictMode -Version 3
      # Following modifies the Write-Verbose behavior to turn the messages on globally for this session
      $VerbosePreference = "Continue"
      # Check if Windows Azure Powershell is avaiable
      if ((Get-Module -ListAvailable Azure) -eq $null)
          throw "Windows Azure Powershell not found! Please make sure to install them from 
      # Create storage account and container if not specified
      if ($DefaultStorageAccount -eq "") {
          $DefaultStorageAccount = $Cluster.ToLowerInvariant()
          # Check if account already exists then use it
          $storageAccount = Get-AzureStorageAccount -StorageAccountName $DefaultStorageAccount -ErrorAction SilentlyContinue
          if ($storageAccount -eq $null) {
              Write-Verbose "Creating new storage account $DefaultStorageAccount."
              $storageAccount = New-AzureStorageAccount –StorageAccountName $DefaultStorageAccount -Location $Location
          } else {
              Write-Verbose "Using existing storage account $DefaultStorageAccount."
      # Check if container already exists then use it
      if ($DefaultStorageContainer -eq "") {
          $storageContext = New-AzureStorageContext –StorageAccountName $DefaultStorageAccount -StorageAccountKey (Get-AzureStorageKey $DefaultStorageAccount).Primary
          $DefaultStorageContainer = $DefaultStorageAccount
          $storageContainer = Get-AzureStorageContainer -Name $DefaultStorageContainer -Context $storageContext -ErrorAction SilentlyContinue
          if ($storageContainer -eq $null) {
              Write-Verbose "Creating new storage container $DefaultStorageContainer."
              $storageContainer = New-AzureStorageContainer -Name $DefaultStorageContainer -Context $storageContext
          } else {
              Write-Verbose "Using existing storage container $DefaultStorageContainer."
      if ($Credential -eq $null) {
          # Get user credentials to use when provisioning the cluster.
          Write-Verbose "Prompt user for administrator credentials to use when provisioning the cluster."
          $Credential = Get-Credential
          Write-Verbose "Administrator credentials captured.  Use these credentials to login to the cluster when the script is complete."
      # Initiate cluster provisioning
      $storage = Get-AzureStorageAccount $DefaultStorageAccount
      New-AzureHDInsightCluster -Name $Cluster -Location $Location `
            -DefaultStorageAccountName ($storage.StorageAccountName + ".blob.core.windows.net") `
            -DefaultStorageAccountKey (Get-AzureStorageKey $DefaultStorageAccount).Primary `
            -DefaultStorageContainerName $DefaultStorageContainer `
            -Credential $Credential `
            -ClusterSizeInNodes $ClusterSizeInNodes
    Many thanks
    Brett

    Hi,
    it appears that [PSCredential]$Credential = $null is not correct, i to get the same
    error, let me check further on it and revert back to you.
    Best,
    Amar

  • Automating the creation of telephone accounts in call manager

    Hi, I have recently been asked to explore the possibility of automating telephone account creation in Cisco Call Manager, using scripting.  Now although my scripting knowledge isn't great, one idea that was suggested was the use of .csv files?  Any advice or tips about how to proceed would be very much appreciated. Thanks.

    Hi Jaime, thanks for your reply.  I have already discussed the possibility of using CUCM 10 although unfortunately this was ruled out straight away as the cost of implementing the latest version would be too expensive for our department.  I am also looking into the Cisco BAT and have an account for the CBT Nuggets to get some training on BAT.  Additionally, I am looking into writing up a simple script that could be used to change the formatting of a .csv file containing staff details that could then be uploaded to CUCM.

  • Automating Administrator creation in 11g OMS

    Is there any way to automate the creation of an Administrator in 11g OMS? I can automagically create the database user, but there are some resource privs that need to be granted as well. If anyone has done this, I would be grateful for some steps in the proper direction.
    Thanx in advance.

    Thanx for the tip using emcli. We have an automated system that let's us know when a new user is requested for our OMS. I am looking to let that message be the trigger for an additional automated process for the user creation.
    One thing I noticed is that the emcli command creates the application user but not the database user. It also has the incorrect database profile. Perhaps I am missing something?
    Here is the command I used:
    emcli create_user -name=TEST123 -desc="Test using EMCLI" -privilege="VIEW_ANY_TARGET" -expire="true" -password="XXXXXXXXXX" -email="[email protected]" -profile="XXX_PWD_AGING" -roles="PUBLIC" -type="DB_EXTERNAL_USER"
    And here is my output from both emcli and sqlplus:
    User "TEST123" created successfully
    SQL> select * from dba_users where username = 'TEST123';
    no rows selected
    Perhaps I am missing something?

  • Automating Form Creation

    I have to create a set of application forms using Acrobat. My problem is that there are 12 x 6 x 5 variants, so would rather not create 360 individual forms.
    At the moment the workflow is as follows:
    Choose 1 of 12 Products
    Open 1 of 6 applicable app form templates (inDesign)
    Replace product name into [Product Name] placeholder (inDesign)
    Save a PDF down of each of the 5 serial codes for each template for each product.
    A simplified example:
    Product1_Template1_001.pdf
    Product1_Template1_002.pdf
    Product1_Template1_003.pdf
    Product1_Template2_001.pdf
    Product1_Template2_002.pdf
    Product1_Template2_003.pdf
    Product1_Template3_001.pdf
    Product1_Template3_002.pdf
    Product1_Template3_003.pdf
    Product2_Template1_001.pdf
    Product2_Template1_002.pdf
    Product2_Template1_003.pdf
    Product2_Template2_001.pdf
    Product2_Template2_002.pdf
    Product2_Template2_003.pdf
    Product2_Template3_001.pdf
    Product2_Template3_002.pdf
    Product2_Template3_003.pdf
    Ad nauseum....
    For each of these 360 pdfs, run app form wizard and save down (Acrobat Professional)
    As you can imagine the job is complex, and I would love a way of performing some sort of automation of the actual app form creation.
    A few notes (the serial codes are just a way for our client to track where the pdf originated from: i.e. tracking) If there is a different/easier way of doing this i'm all ears.
    Really if anyone knows of any ways of speeding up this process in any way, i'm all ears. Thanks.

    Yes, after you create the fields, you can replace the pages with pages from a different PDF and any fields will be retained. This process can be automated with the doc.replacePages JavaScript method: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.522.html

  • Automating Folder Creation

    Here's what I want to do. I'm trying to automate client folder creation. I have a directory called clients. Every time I create a new folder in the clients folder, I'd like for it to automatically ask me what I'd like to name the folder, then I would like it to create 6 directories inside the created folder titled "legal" "spec files" "correspondence" "modules""graphic design" and "archived materials".
    How would I go about that with automator?

    A couple of options. The first uses automator and a shell script, but you would run the workflow which asks for a folder name instead of you creating it first, as you requested. The second uses Folder Actions so that when you create a new folder in your clients folder it will ask for a name and create the folders.
    Automator Method:
    1) From Files and Folders, drag over a "New Folder" action.
    2) Enter a default name for the folder in the Name: field (or leave blank)
    3) Select your Clients folder in the Where: field
    4) Click the "Options" button and tell it to "show this action when the workflow runs"
    5) From the Utilities, drag over a "Do shell script" action
    6) Select the /bin/bash shell
    7) in the Pass input field select "As arguments"
    8) Enter this code mkdir -p $1/legal/ $1/spec files/ $1/correspondence/ $1/modules/ $1/graphic design/ $1/archived materials/
    Save this workflow and run it when you want to create the new folder. If you have quick keys, launch bar, Quicksilver, or the like, you could set up a shortcut...or, you can use cmd-space to call up spotlight and search for you workflow name and launch it from spotlight.
    For the Applescript option:
    I had some glitches with it in that it seemed to re-run the script after I changed the name. I couldn't figure out if the name change drove the script to run again. Also, after creating the new folder, you have to wait a few seconds for it to trigger. Kind of annoying, I thought.
    First, copy this script to a new Script Editor script (Applescript folder).
    property dialog_timeout : 30 -- set the amount of time before dialogs auto-answer.
    on adding folder items to this_folder after receiving added_items
    try
    tell application "Finder"
    set theFolder to item 1 of added_items
    set response to display dialog "Please enter a folder name:" default answer "New Client"
    if button returned of response is not "Cancel" then
    set the name of folder theFolder to (text returned of response)
    make new folder at folder theFolder with properties {name:"legal"}
    make new folder at folder theFolder with properties {name:"spec files"}
    make new folder at folder theFolder with properties {name:"correspondence"}
    make new folder at folder theFolder with properties {name:"modules"}
    make new folder at folder theFolder with properties {name:"graphic design"}
    make new folder at folder theFolder with properties {name:"archived materials"}
    end if
    end tell
    on error theErr
    display dialog theErr
    end try
    end adding folder items to
    Save it as a script in your user/Library/Scripts/Folder Action Scripts/ folder. Run the Folder Actions Setup script in the Applescript folder and attach this script to your "Clients" folder:
    1) Click on the Enable Actions checkbox
    2) Click the "+" button in the left pane and find your clients folder
    3) Click the "+" button in the right pane and find your script you just saved.

  • Automation Hyperlinks inDesign

    Hi, I have a question, I have multiple page document that was created from CSV using data merge in inDesign that have specific text that I would like to make into hyperlinks so it can be exported to PDF and the links would work. But the thing is I tried one method described in here using AutoHyperlink script. The problem with that is that I have same text to convert to hyperlinks on all pages (like Product Info, View Image etc) but they need to have links to different webpages. For example on Page 1, "Product Info" text should link to one website, but on Page 3, "Product Info" should link to another website. Is there a way to do automation and source these hyperlinks from CSV or some specific formated text file? If there is any way to do that please let me know. Thanks!

    Thanks, Bob, it's good to have a lively disagreement...if you have a moment would you check out Bug #2925372?
    The original poster, jen2638, explained up front that she is "not a developer and I do not know scripting." Any solution that requires her to learn scripting is probably a non-starter, and similarly so for XSLT.
    I would also say that because pretty much any use of InDesign's native XML import requires the use of XSLT, that tautologically makes it "not super." That is, XSLT is a tool to transform arbitrary XML into other arbitrary XML. Because InDesign's XML import is extremely rigid, the only way to get it to import most kinds of XML is to transform that XML (such as with XSLT).
    But I agree. If you can write scripts and XSLT transformations (or other kinds of XML transformations), then using XML with InDesign is extremely powerful. Unfortunately that cuts out 95% of the population, and leaves much of the remaining 5% tearing their hair out.
    It is far easier to do any kind of manipulation in Excel and export to CSV and then use Data Merge. (Or to use a purpose-built catalog plugin).
    Those will work for this problem, and do so handily (at least, to the extent that I understand the problem).
    It's definitely more powerful to do it in InDesign. But it's not friendly; it's not easy; it's not for non-developers; and, in my considered-but-nowhere-near-humble-opinion, it is nothing close to "super."
    I guess some of this can be alleviated by good cookbooks, and I think there may be a few of them out there. But.

  • The automatic hyperlink creation is in Firefox 7.0.1 is no longer working in Yahoo Mail. It has worked for 10+years, but just quit recently. How do I fix it?

    I have windows XP. It has always automatically become a hyperlink when I hit the space bar after typing it out. I know about the icon in the toolbar that lets me make one, but I don't want to have to do this since I never had to before. I want to make it work automatically again.

    First, you are running Firefox 7, which is EXTREMELY Old and Insecure, which not only leaves you open to many known bugs, but to dozens of known security issues which can be exploited to compromise your personal data.
    So, your first step is going to be to upgrade to Firefox 15.0.1. [[Update Firefox to the latest version]].
    After that, does Yahoo Work properly?

  • Erratic hyperlinks creation

    Windows XP - Word 2003 - Acrobat 8.1.0
    I routinely use Acrobat to concert Word documents in PDF, including hyperlinks to external PDF files; this used to work very well.
    However, this suddenly started to work in a completely erratic (non reproducible) manner. Sometimes links are created, sometimes not, sometimes only some links are created and some others not. The strange thing is that it stopped working properly without changing any option in my configuration.
    Did anyone notice a similar behavior?
    Can anyone help?
    Thanks for your help.
    Papageno

    Hi, does anyone have some clue about it ?

  • Hyperlink creation

    I would like to create hyperlinks in a PDF file to link to Word, Excel, and PPT documents.  Is this possible?
    Thanks
    Cheri k

    Not using Adobe Reader, no.

  • Automated TR creation while release the Process Order

    I have to split the quantity into smaller units based on the ‘LE quantity’ before TR creation. In transaction LB03, there should be additional line items after the quantity split.
    I am using the EXIT ‘EXIT_SAPLLCPP_001’. It is triggering during the transaction run. But it doesn’t serve the purpose.
    Can anyone help me to achieve this functionality?

    Hi,
    In Process Order Header Screen Go to ---> Log ---> On Release.Here you will find the detail error behind this problem.Go though it .Resolve it and then try to release the Process Order, and if required get back to us.
    Suppose reason may be,
    - Missing part
    - Missing Capacity
    - Batch Determination is required to perform.
    - Any User Exit (Other then std. SAP)
    Regards,
    Dhaval

  • Automating Swatch Creation

    At my job, we have thousands of these small swatch PSD files that are created from either Hex codes or RGB values and this is all currently done manually. I am wondering if there is a way to automate the creation of these files via scripting or data sets. Essentially, it is a document with a canvas size of 50x50px that is filled with whatever the color value for the swatch is. The file is then named with the color name (i.e. "Dark Red.psd").
    Ideally, I could load in a list that dictated all appropriate values (canvas size, color fill value, layer name?, file name, etc) and have Photoshop spit out a batch of files.
    Anyone have an idea for how this might be done? I would appreciate any thoughts/input.

    In xtools (http://sourceforge.net/projects/ps-scripts/files/) the file xtools/xlib/ColorSwatches.jsx has code in it that will read files in X11 rgb.txt format:
    ! $Xorg: rgb.txt,v 1.3 2000/08/17 19:54:00 cpqbld Exp $
    255 250 250        snow
    248 248 255        ghost white
    248 248 255        GhostWhite
    245 245 245        white smoke
    245 245 245        WhiteSmoke
    220 220 220        gainsboro
    From there, you can load/create/save a Swatch Palette, .aco file, or whatever.
    It's all probably overkill for what you need. A CSV file with the info you need would be easy enough to parse and create your psd files from.
    -X

Maybe you are looking for

  • Alt-tab doesn't work properly

    Alt-tab is supposed to display the icons for the applications that are running. If I keep the alt key depressed, the icons are supposed to stay visible. But on my system, they are only visible for a couple of seconds, and then the window for the icon

  • Is there anyway to integrate sms server with Peoplesoft 8.52

    Hii, My client asked me about SMS Server Integration with Peoplesoft 8.52 .. so please advice me, is this achievable? if yes then provide me some assistance thankss

  • How can I get the solution for below scenario (SD Pricing)?

    Hi SD experts, Can anybody provide a solution to match below requirement scenario ? (Retail promotion or condition alone) For a Customer : 1.Buy 1 Product A and 1 Product B --Discount 5% 2.Buy 2 Product A and 3 Product B --Discount 10% Thanks&Regards

  • After transfer some folders have 3 versions

    I transfered my photos from PC to a new iMac using a network cable(17GB). Some folders now have three versions with dates as a sub-name. Instead of dates: Large, Medium and Small. Same images only different in size. Other folders go by: Large, slides

  • Isolate lips--what face paint color should I use for best green screen keying effect?

    Hello there!  I am using Elements 11. It sounds like I answered my question in my question.  Green, right?  But , face paint doesn't have the reflective, glossy quality that a true green screen would have.  Does that change anything?  Should I look f