Shortcut for a Script

How do you create a shortcut for a script? I'm not referring to a keyboard shortcut.

Hi John,
I am referring to the physical location of the script.
Here are some explanations of the shortcut:
1. (From Dave Saunders)
Consider Using Aliased Sub-folders
Having scripts located physically inside the application folder can be somewhat inconvenient, particularly if you are a scripter, working on the scripts themselves, rather than just using them as tools. But even script users might be frustrated if they forget that the scripts are there and for some reason re-install InDesign, obliterating the Scripts folder in the process.
While you could use an alias of the whole Scripts folder to work around this issue, I have found it better to work with aliased sub-folders. This allows me to keep my scripts in folders inside my Documents folder, while for some projects, I have a Scripts folder associated with the project itself for custom scripts that apply to just that project.
2. (From page 4 of the InDesign CS3 Scripting Tutorial)
You also can put aliases/shortcuts to scripts (or to folders containing scripts) in the Scripts Panel folder, and they will appear in the Scripts panel.
3. Save the script as a text file with the file extension ".js" and put itor an alias/shortcut to itin the Scripts folder in the Presets folder inside your InDesign folder. Run the script from the Scripts palette.

Similar Messages

  • Possible to set shortcut for file scripts custom script ?

    i have some custom scripts in file > scripts. i'd like to set a shortcut key for them, but you can't do that thru edit > keyboard shortcuts because the custom ones don't show up, only "other script F12" shows up.
    is there a way to set a shortcut to execute a custom script? i am using Ai CS3 version 13.0.2
    some work arounds i tried that didn't seem to work:
    - setting the script as an action - didn't work, the script does a bunch of stuff that can't be solved by actions
    - setting an action and inserting a menu item, then setting a shortcut to run the action - doesn't help because menu item (the script) gets disassocated from the action every time you shut down Ai. sometimes it disassociates itself. tried to save the actions and reload them, but the scripts were still disassociated
    thanks

    As it sounds like you have already discovered, you should be able to define an Action with but one InsertMenuCommand step in it. That menu command would be the selection of your script from the File Menu.
    However, that functionality has been broken for four full versions now. The Menu Command step goes vacant after quitting and re-launching Illustrator.
    I keep an Action in my Actions palette titled CurrentScript. I can at least, at the beginning of a work session in which I know I will need to call a particular script repeatedly, re-do the Insert Menu Item step and have it survive during the work session. (It will, of course, be gone if I quit & relauch.)
    If Actions could reliably call scripts from the File menu, one could do some very cool things. Many operations in the standard UI are not available via the scripting model, and of course vice-versa. Simply being able to reliably call scripts as individual steps of an Action would open the door for elaborate automations that perform both scripted functions and those available in the UI.
    But alas, users have been complaining about this bug for four versions now.
    I think it is conceivable that one could build a Javascript that employs the ScriptUI functionality, and have that script run automatically at launch. That script could simply be a "dashboard" palette from which to call other scripts. But one should not have to go to such ridiculous lengths to work around a bug that has gone unaddressed for so long.
    JET

  • Shortcut for Scripts... Menu Bar Item

    Is it possible to add a shortcut to the Scripts... menu item in Photoshop CC 2014?
    I have not been able to figure this out.
    OSX10.9

    I place a shortcut to my Photoshop Scripts tree into each Photoshop version Preset\Scripts folder to link all version to my Photoshop scripts.   CS2,  CS6 x32 and x64, CC x32 and x64 and CC 2014 all six Photoshop version use use the same script files.
    For short cut keys  I have to edit each Photoshop version keyboard Shortcuts or Create Photoshop Actions that use my scripts and assign shortcut key to these actions. While the Actions may sound stupid. They are all in a single Action set. Its much easier to load that action set into each version of Photoshop then to edit each Photoshop version shortcut keys and adding all the shortcuts or maintain Names sets of saved Photoshop shortcuts for both Script and other personal Photoshop shortcut keys. Well it is for my feeble mind. If Photoshop versions were more compatible one would not need so many versions installed....

  • Use Shell Script to create a keyboard shortcut for a installed Service

    I'm not even sure if this is possible, but I hope someone out there has an answer!
    I have an automator Application that I'm using to install a service to my Mac(will be deploying this to hundreds more). Id like to have this Application contain a Shell script that sets up a keyboard shortcut for the service after it is installed.
    Anyone know how to do that?

    You need automator to create services, as detailed in http://discussions.apple.com/thread.jspa?threadID=2241804 a four-parter by Sal Saghoian on *Automation in Snow Leopard*
    This, describes old and new automator—services stuff:
    http://www.reynoldsftw.com/2009/08/automator-and-finder-interactions-in-os-x-10- 6/
    Alternatively, just save the script
    *+tell application "Firefox" to activate+*
    as an app, put it on the Dock, and click it to activate it. However, seems simpler just to put the FF icon on the Dock and a single click launches it. Why would you want a service or AS to do the same thing?

  • Keyboard shortcuts for scripts

    In CS4, is there a way to assign a keyboard shortcut to a script?

    As far as I know the best you can do is to include it in quick apply. You must enable scripts in that list, I'd advise disabling menu commands also to make the searches easier. CMD/CTL + Return invokes the menu. You can type and find what you need, hit return to run the script. If you've recently run the script you can just hit CMD/CTL + Return, Return to rerun it.

  • How can I set up a custom keyboard shortcut for volume control?

    Hi all,
    I use my black MacBook at work, connected to an external monitor and external keyboard. I'm looking for a way to set up the F buttons on my external keyboard as volume control, just as they do on my laptop keyboard. Looking for F3 to F5 to be volume mute, down, and up, respectively.
    I tried going into Keyboard Shortcuts in System Preferences but since there is no menu item for volume control I can't seem to add it. Anyone know how I can go about doing this or what I'm missing?
    Thanks
    Mike

    paste the following into Applescrpt Editor (it's in /Applications/Utilities)
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set curVolume to output volume of (get volume settings)
    -- work out the new setting
    if curVolume < 96 then
    set newVolume to curVolume + 5
    else
    -- can't go over 100
    set newVolume to 100
    end if
    -- and apply it
    set volume output volume newVolume</pre>
    this script will increase volume by 5 (out of 100) any time you run it. you can adjust this of course. save the script somewhere.
    You can use a 3rd part app launcher to bind a keyboard shortcut to it. I use Butler. there are many others: Quicksilver, ikeys, quickeys, Spark, Launchbar.
    this will work the fastest.
    If you don't want to use 3rd party tools for this you can make a service using automator but that might be a bit slower than the first option. open automator. it will give you a pulldown screen wiuth the choice of what you want to make. choose "service". set it to receive no input and be available in all applications. add the following "run apple script" action to the service
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on run {input, parameters}
    set curVolume to output volume of (get volume settings)
    -- work out the new setting
    if curVolume < 96 then
    set newVolume to curVolume + 5
    else
    -- can't go over 100
    set newVolume to 100
    end if
    -- and apply it
    set volume output volume newVolume
    end run</pre>
    save the service, go to keyboard system preferences->keyboard shortcuts->services and make a shortcut for the service you just created.

  • How do I generate a list of keyboard shortcuts for any given application

    I want to generate a list of keyboard shortcuts for all of the applications I have on my Mac. I want the list to be a simple text (or rtf) file that I can edit and organize. (By edit, I don't mean change the shortcuts, only the report of them.)
    I was using Key Cue, but it does not let me save the list to a text file.
    I want this for several purposes. One is to have a easy to reference list of shortcuts to learn. Another is to find unused key combinations that I can use for my own keyboard shortcuts that I create with DefaultKeyBinding.dict.
    Note: The program doesn't have to an OS X app. A program that runs from a shell without a GUI is plenty adequate.
    If there is a way to read the keyboard commands from a plist list or other such file, and any of you know the format for these or where I can find them, I can write a Perl script myself to do it.

    Well, the info is stored in...
    /Users/YourUserName/Library/Preferences/com.apple.universalaccess.plist
    PlistPro has a way to convert it to ASCII, but you'll srtill have work to do, as...
    {enabled = 1; key = 20; modifier = 1179648; sybmolichotkey = 28; },
    {enabled = 1; key = 20; modifier = 1441792; sybmolichotkey = 29; },
    {enabled = 1; key = 21; modifier = 1179648; sybmolichotkey = 30; },
    {enabled = 1; key = 21; modifier = 1441792; sybmolichotkey = 31; },
    {enabled = 0; key = 28; modifier = 1572864; sybmolichotkey = 15; },
    {enabled = 0; key = 27; modifier = 1572864; sybmolichotkey = 19; },
    {enabled = 0; key = 24; modifier = 1572864; sybmolichotkey = 17; },
    {enabled = 0; key = 47; modifier = 1835008; sybmolichotkey = 25; },
    {enabled = 0; key = 43; modifier = 1835008; sybmolichotkey = 26; },
    {enabled = 0; key = 28; modifier = 1835008; sybmolichotkey = 21; },
    {enabled = 0; key = 96; modifier = 1048576; sybmolichotkey = 59; },
    {enabled = 1; key = 122; modifier = 262144; sybmolichotkey = 12; },
    {enabled = 0; key = 120; modifier = 262144; sybmolichotkey = 7; },
    {enabled = 0; key = 99; modifier = 262144; sybmolichotkey = 8; },
    {enabled = 0; key = 118; modifier = 262144; sybmolichotkey = 9; },
    {enabled = 0; key = 96; modifier = 262144; sybmolichotkey = 10; },
    {enabled = 0; key = 97; modifier = 262144; sybmolichotkey = 11; },
    {enabled = 1; key = 50; modifier = 1048576; sybmolichotkey = 27; },
    {enabled = 1; key = 98; modifier = 262144; sybmolichotkey = 13; },
    {enabled = 1; key = 50; modifier = 1572864; sybmolichotkey = 51; },
    {enabled = 1; key = 100; modifier = 262144; sybmolichotkey = 57; },
    {enabled = 1; key = 17; modifier = 1572864; sybmolichotkey = 50; },
    {enabled = 1; key = 2; modifier = 1572864; sybmolichotkey = 52; },
    {enabled = 0; key = 105; modifier = 0; sybmolichotkey = 32; },
    {enabled = 0; key = 109; modifier = 0; sybmolichotkey = 33; },
    {enabled = 0; key = 103; modifier = 0; sybmolichotkey = 36; },
    {enabled = 0; key = 109; modifier = 0; sybmolichotkey = 62; },
    {enabled = 0; key = 49; modifier = 1048576; sybmolichotkey = 60; },
    {enabled = 0; key = 49; modifier = 1572864; sybmolichotkey = 61; },
    {enabled = 1; key = 2; modifier = 1310720; sybmolichotkey = 70; },
    {enabled = 1; key = 49; modifier = 1048576; sybmolichotkey = 64; },
    {enabled = 1; key = 49; modifier = 1572864; sybmolichotkey = 65; },
    {enabled = 0; key = 53; modifier = 1048576; sybmolichotkey = 73; },
    {enabled = 1; key = 107; modifier = 0; sybmolichotkey = 53; },
    {enabled = 1; key = 113; modifier = 0; sybmolichotkey = 54; }

  • How to create a shortcut for all users in Win 7 and Win 8?

    Hi,
    I'll trying to make a script that will create a shortcut in every user profile account in a computer. I stumble upon the script below from
    http://gallery.technet.microsoft.com/scriptcenter/Create-shortcut-in-your-11cfd3de/view/Discussions#content.
    Option Explicit
    On Error Resume Next
    Dim objShell
    Dim objDesktop
    Dim  objLink
    Dim strAppPath
    Dim strWorkDir
    Dim strIconPath
    strWorkDir ="C:\Program Files\Microsoft Office\Office15"
    strAppPath = "C:\Program Files\Microsoft Office\Office15\ORGCHART.EXE"  'you have to use your URL to Interanet site or path to specific program
    'strIconPath = "\\server\Xyz.ico"     'specify the path to the icon please change to your valid path
    Set objShell = CreateObject("WScript.Shell")
    'objDesktop = objShell.SpecialFolders("Desktop")
    Set objLink = objShell.CreateShortcut("C:\Users\%userprofile%\Desktop\Org_chart_test.lnk") 'change here To your shortcut name
    objLink.Description = "this is a test" 'replaec with your description
    'objLink.IconLocation = strIconPath
    objLink.TargetPath = strAppPath
    objLink.WindowStyle = 3
    objLink.WorkingDirectory = strWorkDir
    objLink.Save
    I did some modifications to cater to my need. Now the question is, how can I make the script create a shortcut for every user profile from the script above?
    Any inputs would be greatly appreciated.
    Thanks!

    You could create the shortcut at one machine, then copy it to the target as part of the logon script. Note also that this line contains an error:
    "C:\Users\%userprofile%\Desktop\Org_chart_test.lnk"
    It should read:
    "%userprofile%\Desktop\Org_chart_test.lnk"

  • Keyboard shortcuts for text selection not working in Flash CC

    In the new Code Editor in Flash CC running on Mac OS X, most standard Keyboard Shortcuts for traversing through the text work as expected (as the Operating System works globally) but there is one that doesn't and it's I think the most important one.
    Hitting "OPTION + SHIFT + [right or left arrow keys]" to select words doesn't work. Hitting "OPTION + [right or left arrow keys]" works as expected, moving the cursor to the next word or break point, but adding shift doesn't do the selection.
    I don't understand why this changed since it's a basic OS global shortcuts, and every other program behaves the way it should. Flash CS6 running on the same system behaves fine, but Flash CC doesn't. If you have ever written code, you know that any second that a programmers hand doesn't have to leave the keyboard to search for the mouse is invaluable, and this has forced me to stop using Flash CC and use Flash CS6 to edit my Action Script classes becuase it's unusable otherwise.
    These shortcuts are also not listed in the keyboard shortcuts for the program, so I can't change the default behavior. Does anybody know if there's a way to set it back to the way it was before, or just disable special text shortcuts so that selecting text behaves like any other application in the operating system?
    System Configuration:
    Flash CC
    Mac OSX 10.8.5

    Amy~ Yep the lasso tool was what I verified with another user. 'L' seems to be bound indefinitely to loop through different types of lasso tools and it was annoying them because they just wanted L to be the regular freehand lasso. I removed 'L' from being an option on the polygon lasso and even set it explicitly to SHIFT+L as well as set the lasso tool to a completely different keyboard combo. 'L' still cycled through lassos haha. It needs some fixes.
    fertolg~ At least you have a workaround for now. I'd go nuts if I couldn't use keyboard text selection writing code, oy! You're welcome and if you're all set please mark correct so we can filter unanswered. Good luck!

  • What is the keyboard shortcut for extract page?

    There used to be a series of keyboard shortcuts for page manipulation (and other) - using acrobat 9 till recently. Now new to Acrobat XI Pro (Windows 8.1). I can see the shortcuts for insert & delete page but not for extract page (and other). Am I missing something? The keyboard shortcuts are a must for speed and a healthy right wrist.
    Thank-you for your time.

    There isn't a direct way of doing it, but you can "hack" it using a script. Create a folder-level script with this code:
    app.addMenuItem({cName: "MyExtractPages", cUser: "E&xtract Pages", cParent: "Edit",
        cExec: "app.execMenuItem(\"ExtractPages\");", cEnable: "event.rc = (event.target!=null)"});
    This will add a new menu item to the Edit menu which you could access using the following keyboard shortcut: Alt+E, X

  • CS6 will not save keyboard shortcut for dust & scratches filter

    I am running Photoshop CS6 with all updates on a Windows 8 system.  I have several keyboard shortcuts set up that all work fine but when I assign a keyboard shortcut for the dust & scratches filter it will work until I close Photoshop - when I then open Photoshop again this shortcut is gone but all my other shortcuts remain.
    I have tried going back to the default keyboard shortcuts and then adding just the shortcut for dust & scratches (I have tried ctrl-F8 and several others) and then closing Photoshop and opening it again with the same results.  I was able to add back all of my other shortcuts and they work fine.
    For some reason I can assign a keyboard shortcut to anything except the dust & scratches filter.
    Can anyone shed some light on this problem?
    Thanks

    I had a chance to try the script on a windows 8 machine running photoshop cs6 13.01 in both photoshop cs6 versions 32 and 64 bit and shortcuts seem to stay between restarts.
    If in photoshop cs6 you go to File>Scripts you can see that the script is actually listed?
    When i saved the script out of ExtendScript Toolkit i named it Dust and Scatches.jsx.
    Did you run ExtendScript Toolkit as an administrator before saving the script?
    (right click on the ExtendScript Toolkit shortcut (tile) and choose Run as Administrator)
    Saved to:
    C:\Program Files (x86)\Adobe\Adobe Photoshop CS6\Presets\Scripts
    (cs6 32 bit)
    and
    C:\Program Files\Adobe\Adobe Photoshop CS6\Presets\Scripts 
    (cs6 64 bit)
    Another possibilty if you can't get the script to work is using an action (Filter>Dust and Scratches) and assigning a function key for the shortcut.

  • Is it possible to create a keyboard shortcut for "Export book to PDF"? (Cannot find it in the Keyboard Shortcuts window.)

    I'd like to create a keyboard shortcut for the "Export Book to PDF" command on the Books panel menu, but I simply can't find that command in Keyboard Shortcuts. After not finding it in what seemed the logical place (Keyboard Shortcuts > Product Area: Panel Menus > Book), I've looked through all the Product Areas listed on the dropdown menu -- but it seems I must be missing something.
    What do I need to do / where do I need to look to assign a keyboard shortcut for this command?

    Sorry, I agree that that is missing in action. I don't know of a workaround unless someone has written a script. Scripts can be called with keystrokes.

  • Is it possible to make a keyboard shortcut for a specific color for fonts?

    I'm a novice InDesign user and these forums have been a great resource, so thank you for your time.
    I'm doing a very complicated "text art" project and I'd like to be able to change text colors right from the keyboard.
    In Word, one is able to make a keyboard shortcut (to an unused key combination) that would allow you to change text to white, for example and another combination to change it to black, etc.
    I'd love to be able to do that in InDesign without having to mouse over to the color swatch or over to a paragraph style with the text color set.
    Again, thank you in advance!

    For anyone else who has this problem - I actually found out an easy workaround.
    There's another forum that addresses the NumPad issue for MacBooks (http://forums.adobe.com/thread/324960) and I did a modified version for character styles v. paragraph styles per the final comment by Kaj-Ettore.
    ==
    (1) Open text edit and copy the below script (for me it was changing the text to white):
    try{app.selection[0].applyCharacterStyle
    (app.documents[0].characterStyles.item(1),true)}catch(e){}
    Watch the number '(1)' in brackets on the last line: This is the Style number according to the Styles listed in the 'Character Styles' Panel of InDesign (following "[None]").
    Per my setup, "White" is 1 and "Black" is 2.
    SEE SCREENSHOT:
    Decrement the style you'd like to be applied via this script from the styles listed in the InDesign-applet 'paragraph styles'.
    *Note - This Workaround only works for specific Documents – since InDesign links Styles with document templates.
    (2)  Save the Script to:
    %InDesign_Install_Folder%\Scripts\Scripts Panel\Samples\JavaScript\Style(%nmb%).jsx
    or name the file as you like. You'll have to assign a keyboard-shortcut to this and other files later, so it is wise to choose a common and memorable syntax for naming, e. g. numbers or style-names. (I used Style(White).jsx)
    (3)  Repeat this step for every style you'd like to be applicable via a keyboard shortcut...
    This is my "Black" script:
    try{app.selection[0].applyCharacterStyle
    (app.documents[0].characterStyles.item(2),true)}catch(e){}
    Saved as: Style(Black).jsx
    Assign a Shortcut to the Script
    (1)  Open InDesign > Preferences > Keyboard Shortcuts > %YourSetOfShortcuts%
    (2)  Select 'Scripts'
    (3)  Choose the first script you've written, e. g. 'style(body).jsx'
    (4)  Create Shortcuts for Standard- and Text-Environment
    (5)  Repeat for any script you've written
    (6)  Done.
    This worked perfectly for me and I can now use ONE keyboard shortcut (albeit 3 simultaneous keys) to change from black text to white text.

  • Keyboard shortcut for Control+F2, F, Enter

    Hello,
    I am trying to create a keyboard shortcut that would be available to all Applications deliveres the same result as these keystrokes:
    1. Control + F2 (move focus to menu bar)
    2. F (moves focus to the File menu bar menu)
    3. Enter or down arrow (Displays the File menu)
    WHat I am looking to do is create the Windows equivalent of alt+F (displays the contents of the File menu)
    I have created a System Preferences Keyboard Shortcut for All Applications that has "File" as the description and ^F has the Shortcut...this doesn't work. Is there a way to assign a shortcut to display the menu bar File menu in its open state?

    ReidRik_Von
    Here's one approach to try...
    1) Open System Preferences > Universal Access and make sure "Enable access for assistive devices" is checked.
    2) Highlight and copy the block of code below and paste it into your AppleScript Script Editor (located inside your Applications > AppleScript folder):
    *tell application "System Events"*
    *keystroke tab using command down*
    *set theApp to name of (first process whose frontmost is true)*
    *tell process theApp*
    *click menu bar item "File" of menu bar 1*
    *end tell*
    *end tell*
    Choose Save As from the Script Editor's File menu, File Format: application, leaving the Options unchecked. Give the script application a name (Display File Menu, e.g.), and press Save.
    3) To assign a keyboard shortcut, you might consider downloading and installing the excellent Spark program.
    From Spark's File menu, set up a New Hot Key to launch an Application, in this case the application being your newly created AppleScript application. When the new System HotKey sheet drops down, hit the Choose button and navigate to the location where your new AppleScript application was saved. Select it and press Open. Click inside the editable Shortcut field to make it active, and on your keyboard keystroke Option (alt), plus the letter "f." Then press Create.
    Start the Spark Daemon by selecting it from the File menu, or by pressing the Stark Spark Daemon button on the Spark panel itself, and then quit Spark altogether. The Spark Daemon and your enabled keyboard shortcut will run as a hidden process, using a minimal amount of RAM.
    It worked for me...
    Good luck!
    Regards, Andrew99

  • How to set a keyboard shortcut for open with VLC player

    Hey everyone!
    I have reffered the earlier discussion upon creating a shortcut for the open with function and the below is the correct answer for it by using applescript editor submitted by Barney. However, I couldn't get past the 1st paragraph. It all just went over my head. Especially the "open (thefilelist) " part. Which filelist is being referred to here? All I want is a shortcut for opening files with .avi, .mpeg, and .3gp exts. with VLC player. Please help me out by providing the exact stuff I need to paste in the applescript.
    Thanks
    Ok, this one works both on the finder selection and as a droplet:
    property htmlList : {"htm", "html"}
    property htmleditor : "TextWrangler"
    property textList : {"txt", "text"}
    property texteditor : "TextEdit"
    --property myappextlist: {"ext1","ext2","ext3"}
    -- property myappsname: "myAppName" on run
    tell application "Finder"
    set the fileList to the selection
    repeat with aFile in fileList
    set theFile to aFile as string
    my myOpen(theFile)
    end repeat
    end tell
    end run on open (thefileList)
    repeat with i from 1 to number of items in thefileList
    set this_item to item i of thefileList
    my myOpen(this_item)
    end repeat
    end open on myOpen(aFileAlias)
    set theItemInfo to info for (alias aFileAlias)
    if not folder of theItemInfo then
    set theExtension to name extension of theItemInfo
    if theExtension is in htmlList then
    tell application htmleditor
    open aFileAlias
    activate
    end tell
    end if
    if theExtension is in textList then
    tell application texteditor
    open aFileAlias
    activate
    end tell
    end if
    -- if theExtension is in myappextlist then
    -- tell application myAppName
    -- open this_item
    -- activate
    -- end tell
    -- end if
    end if end myOpen

    Luds.R wrote:
    I have reffered the earlier discussion
    I have the feeling of dropping in in the middle of the conversation.
    Anyway, try this
    --script begins
    property myVLC : "/Applications/VLC/VLC.app"
    property myTypes : {"avi", "mpeg", "mpg", "3gp"}
    on run
              my vlcTest(myVLC)
              tell application "Finder" to set fileList to selection
              my vlcOpen(fileList)
    end run
    on open fileList
              my vlcTest(myVLC)
              my vlcOpen(fileList)
    end open
    on vlcTest(myVLC)
              try
      POSIX file myVLC as alias
              on error
                        display dialog "Sorry, could not locate VLC. Please add the correct POSIX path to the script." buttons {"Cancel"} default button 1
              end try
    end vlcTest
    on vlcOpen(fileList)
              tell application "Finder"
                        repeat with i in fileList
                                  if name extension of i is in myTypes then open i using (POSIX file myVLC)
                        end repeat
              end tell
    end vlcOpen
    --script ends

Maybe you are looking for

  • Web service works when tested, but a report on is blank

    Hi All, I have created a web service reference in apex using WSDL option. It works very well when tested. Then I built a report on top of it. But I always see the message "no data found". I even created the same web service reference manually. This a

  • F4 functionality on selection screen

    Hi, i am having One requirement that  need to create f4 functionality on selection screen. please give me solution on that

  • JSR 168 portlet based web service throwing an error ......

    Hi All, I am quite new to this whole new fusion concept.We are trying to build some web center based applications. I have downloaded jdev11g(Studio Edition Version 11.1.1.0.0)technolgy preview version and started following the pdf documentation that

  • Make Invitees Optional on IPad

    ***********@member.americanexpress.com***********@member.americanexpress.com Dear Forum Members, When I use the calendar (Version 8) on my Mac Mini, I am giving the chance to make the person optional -- letting them know that they don't have to atten

  • Swapdepth and movieclip(s)

    I have a question about using Swapdepth. I have three objects. Simple buttons. When i'm using SwapDepth it works fine. All objects response as wanted. Question/Problem: When i make one movieclip of all the buttons together, it won't work anymore. I m