Searching for a Script...

I am in the process of making a "Deal or No Deal" type DVD program in DVDSP. I am going to rig it (i.e. the third briefcase has $500 regardless of the case's number) The problem I am running into is that I'm not sure how to "turn off" a case after it has been selected. I've built the money wall and briefcase layout in Photoshop and have each as a diffent layer. Does anyone know a script that allows me to turn off a layer after it has been selected?
I'm running DVDSP 4.1.2 on a MacBook Pro 2.4GHz.
Thanks in advance,
Tom

You will be better off approaching this in a slightly different way. If you have a series of images to use as the boxes, each image showing one less each time, then you can have the user select any of the boxes, randomly assign a value to their choice (track the values you have assigned each time so as not to repeat) and then simply reduce the number of boxes available to choose from. Use standard overlays for the menus and don't try to match the gameplay from the TV version!
You can't control layer visibility for a photoshop layer based menu using scripts.

Similar Messages

  • Searching for existing scripts..

    I have a question.when I open some application's folder (for example garageband)
    there is no existing scripts,does that means that some scriptable applications don't have any existing scripts that I can edit?
    I saw many sample scripts in some folder somewhere in scripteditor ,but they were few..aren't there many existing scripts of scriptable applications?
    Message was edited by: rumencho

    The Scripts Menu (when enabled) will place an item in the menu bar that can be used to execute various scripts, but it needs to be set up for the scripts that you want to use. Not all applications will have utility or example scripts, although there are some examples included with the system (for example, in /Library/Scripts/). An application's scripting dictionary, if there is one (open the dictionary from the Script Editor), documents the various script definitions for it, and searching these forums or via Google can provide additional example scripts. There are also several scripting websites, such as http://macscripter.net/ .

  • Env. variable for sqlPlus to search for sql scripts?

    On Oracle 11.2, on win / (or Win 2008 64bit) I would like to start sqlPlus and call some package scripts wich are in $ORACLE_HOME\rdbms\admin folder..
    but I would not like to move to that folder or to call scripts with full filename..
    so, is there some environment variable wich tells sqlPlus in wich folder to search for .sql (.plb & other) scripts?
    regards,
    EDIT: I think it should be something like ORACLE_PATH
    Edited by: 846417 on Jul 19, 2011 5:34 AM

    Try SQLPATH

  • I searching for a script that ...

    ... think at an image like a chessboard.
    I want track a pen path in the four corner patches and the script should ask me how many patch cointain the chessboard (rows/ columns) and start to average the center of each patch, create an image with rows/columns number of pixels and fill the pixels with the same values of the center of each patch.
    Do you know such script?
    Thank you
    Marco

    Sorry, it is not easy for me write in English.
    I have yet the image like chessboard: these are color targets with different number of rows/columns. To evaluate them in color management software, it need a one pixel per patch format. So with a pen path I tell to the script where are the patches, in the interface I tell to the script how many rows/columns the target is formed (in my fantasy), and script should filter/average the center of each patch, pick up one pixel from these zones and create a new image with all these pixels.
    I have yet a script that make this stuff, but it is limited to 6 x 4 patches (this is the big problem) and it is full of unneeded other controls and alert that slow down the work.
    To better understand I have upload here what I mean.
    Thank you for help
    Marco

  • Search functionality for SAP script

    All,
    I am looking some of kind utility or report like RPR_ABAP_SOURCE_SCAN for sap script.
    This is my requirement
    One of the country code has been hardcoded in various forms (sapscripts) i like to scan all custom sapscripts and find all these form names so that i can easily change.
    Is there any way to do this ?

    REPORT ztextscan.
    TABLES stxh.
    SELECT-OPTIONS:
      object FOR stxh-tdobject DEFAULT 'FORM',
      name   FOR stxh-tdname,
      id     FOR stxh-tdid DEFAULT 'TXT',
      spras  FOR stxh-tdspras.
    PARAMETERS text TYPE string.
    DATA gt_lines TYPE TABLE OF tline WITH HEADER LINE.
    SELECT * FROM stxh
      WHERE tdobject IN object AND
            tdname IN name AND
            tdid IN id AND
            tdspras IN spras.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          id                      = stxh-tdid
          language                = stxh-tdspras
          name                    = stxh-tdname
          object                  = stxh-tdobject
        TABLES
          lines                   = gt_lines
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
      CHECK sy-subrc = 0.
      LOOP AT gt_lines.
        SEARCH gt_lines-tdline FOR text AND MARK.
        CHECK sy-subrc = 0.
        WRITE:/ stxh-tdid, stxh-tdspras, stxh-tdname, stxh-tdobject, gt_lines-tdline.
      ENDLOOP.
    ENDSELECT.

  • Script to apply cell style after search for paragraph

    Hello,
    can somebody help my do a script to search for all occurences of a paragraph format in tables and then apply a cell style to the enclosing cell for a document.
    Thanks in advance.
    Peter
    BTW Mac InDesign CS 6

    Hi,
    use this:
    var mDoc = app.activeDocument,
    pST = mDoc.paragraphStyles.item("paraStyleName"),
    cST = mDoc.cellStyles.item("cellStyleName"),
    mFound, mParent, count;
    app.findTextPreferences = null;
    app.findTextPreferences.appliedParagraphStyle = pST;
    mFound = mDoc.findText();
    count = mFound.length;
    while (count--) {
         mParent = mFound[count].parent;
         if (mParent.constructor.name == "Cell")
              mParent.appliedCellStyle = cST;
    app.findTextPreferences = null;
    edit paraStyleName and cellStyleName
    Jarek

  • Searching for scripts with Spotlight

    I decided to ask this question on this forum because AppleScripters are the most likely to search for scripts with Spotlight.
    *First, here’s what seems to be the normal behavior of Spotlight:*
    If I open the folder “/Users/pierre/Documents/Loisirs/Informatique/Utilisation avancée/AppleScript”, type ⌘F and enter “Kind is Other” and “script” as the search criterion, I get 89 items in the +Searching “AppleScript”+ window.
    On the other hand, if I replace the previous criterion with “File extension is scpt”, I get 88 items in the +Searching “AppleScript”+ window, which is normal since one of my scripts is a script bundle, whose extension is “scptd”.
    Next, if I open my home folder, type ⌘F again and enter “Kind is Other” and “script” as the search criterion, I get 110 items in the +Searching “pierre”+ window, which again is normal since many of my scripts are outside of my “AppleScript” folder.
    *Now, here’s what looks like a bug:*
    If I replace the previous criterion with “File extension is scpt” in my home folder, I get only 3 items (instead of 109) in the +Searching “pierre”+ window, which obviously is nonsense.
    I have rebuilt permissions and reindexed Spotlight, without any difference.
    Any explanation?

    Hi Pierre
    Not a explanation, but a possible solution, try some of these ideas:::
    1) Restart Mac
    2) Rebuild the spot light index manually (I no you said you have done this, this is just a path to follow):
    a) launch terminal
    b) type this sudo mdutil -E /
    c) type in your admin password when prompted
    d) rebuilding index should commence (could take a while)
    3) clear the spot light caches and prefs:
    a) download "Yasu" from here and install
    http://jimmitchelldesign.com/yasu/
    b) enable "Reset System Prefs", "Clear System font Cache", "Clear local font cache", "Clear user font cache"
    click ok
    c) Restart Mac
    4) Kill the SystemUIServer:
    a) launch activity monitor, find process "SystemUIServer" highlight then click button quit process
    hope this helps
    Budgie

  • Working on a script to search for and move files - need Guru help!

    Hi, I'm trying to help my dad with a task and my outdated Applescript knowledge isn't helping me much.
    Here's what I need to do in a nutshell:
    FolderA contains a bunch of JPG files.
    FolderB is the root of a hierarchy of folders containing DNG files.
    Each file of FolderA has a mating file (same name but with .DNG) somewhere in the hierarchy of FolderB.
    The goal is to move each JPG file from Folder A to the folder containing it's mate.
    So, the basic flow is:
    1. Get list of files in folderA
    2. Looping through list, strip out file name (fileA) and find the DNG file somewhere inside FolderB
    3. Get the path of the folder containing the matching DNG file
    4. Copy/move FileA to the folder.
    5. Loop back to #2
    OK, so here's where I am:
    tell application "Finder"
    set JPEGfolder to "Macintosh HD:DadTest1:DadA"
    set DNGfolder to "Macintosh HD:DadTest1:DadB"
    set a_list to every file in Afolder
    repeat with i from 1 to number of items in a_list
    -- Everything happens within this loop
    set a_file to (item i of a_list)
    set fileInfo to info for a_file
    set theName to displayed name of fileInfo as string
    -- now theName contains the actual file name minus the extension
    At this point I don't know how to search for the mating file using Applescript. If I was in UNIX I could do a "find . -name filename" and parse out the path, but I don't know how this works in Applescript.
    I think I can figure out how to move the file once I have the path, but the search routine has me stumped for now.
    Any thoughts?
    Thanks!

    In my opinion your best bet is to take a 180° turn and simplify things significantly.
    Your current approach involves multiple file searches - for each file in the JPEG folder, search all the DNG folders looking for a match. That's an large number of searches, and a large number of something that AppleScript isn't great at.
    Instead you'd be far better off walking once through the DNG folders. For each DNG file look for a matching JPG file in the one folder that contains JPEGs. This would be exponentially faster - one walk through the filesystem vs. one walk through the filesystem for every JPEG.
    This should give you an idea of what I'm talking about (untested):
    global JPEGfolder
    on run
      set JPEGfolder to alias "Macintosh HD:DadTest1:DadA"
      set DNGfolder to alias "Macintosh HD:DadTest1:DadB"
      processAFolder(DNGfolder)
    end run
    on processAFolder(theFolder)
      tell application "Finder"
        repeat with eachItem in folder theFolder
          if class of eachItem is file and name extension of eachItem is "dng" then
            set basename to characters 1 through -5 of (get name of eachItem)
            try
              move file (basename & ".jpg") of folder JPEGfolder to folder theFolder
            end try
          else if class of eachItem is folder then
            my processAFolder(eachItem)
          end if
        end repeat
      end tell
    end processAFolder
    The idea here is that you start off in the top folder and iterate through each item. If the item is a file and it's name extension is DNG then try to move a corresponding file from the JPEG folder to the current folder. This is wrapped in a try block so the script doesn't fail if there is no corresponding JPG.
    If the current item is a folder then the script descends into that folder by calling itself.

  • Search for a string in SAP Script

    Hello Experts,
    Is there a way to search for a string in all Z SAP scripts, like ABAP source scan?
    Regards,
    Hari.

    Try using function module "READ_FORM" (you will have to write a simple z-program to find all SAPscripts in your system then use this function module to search the SAPScript Forms for a particular string).
    All you have to do is supply the "FORM" name and it will return all of the Pages, Paragraphs, and Texts etc....
    More specifically, try looping at the "FORM_LINES" internal table result and you will see the SAPScript text there....
    Have fun    !
    Edited by: Christopher Twirbutt on Sep 16, 2009 12:43 AM

  • Script to search for special data in folder

    Hi, 
    I use several folders, which have several data called .txt at the end. Some of the folder have no .txt datas and some folder have one or two of .txt datas. 
    I want to write a script which makes it possible for me to search for the .txt datas in the folders and let me know the Name of the data. 
    At the moment, I have no idea how to search in folders for special data. 
    Maybe somebody of you know how I could programme this code?
    Thank you very much for your help. 
    Best regards, 
    Mosquito

    Hello Mosquito,
    There is no Script required to do what you are trying to do based on my understanding of your explanation.
    You just need to follow these two steps:
    1. Add ALL the directories you wish to search for you *.TXT files to the DataFinder Search Areas, be selecting a grey folder in the NAVIGATOR, right-clicking the folder and then selecting "Add Search Area ...". This will ass the grey folder to the "Search Areas" = Yellow folders on top the the tree view in the "My DataFinder" view of the NAVIGATOR.
    2. In the NAVIGATOR panel, find the text box on top of the file system hierarchy view, and type "*.txt" into the <Enter search text> field as shown in the screen shot below. Press the "Search" button to the right of the text field, and you will get a list of all *.txt files that are contained within your yellow search area directories.
    That's it. No scripting required ...
    Let me know if that helps.
         Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • Search for ZfD Agent install script

    I am looking for a script / batch file for installation of the ZENworks agent without reboot of the workstation.
    I am just updating from ZfD 7 SP1 ir3a to ir4 and if I install it manually and start the ZENworks services after install everything is still operational without reboot.
    However if I install the agent with a ZENworks application package it always needs a reboot to activate the ZENworks services again - especially the Workstation-Manager
    I tried it with pre- and post launch and distribution scripts, and with batch file installation. Everytime when the Workstation-Manager stops the installation ends but the post-scripts and batch processing stops as well. It always requires a reboot to activated the Agent again - or a manual start of the Workstation-Manager service.
    I need to find just a way to call a batch file after the MSIEXEC process finishes in order to perform a "net start Workstation-manager".
    The difference to other invoronments might be, that the Application is assigned to the Workstations instead to the users like in most other environments.
    Thanks for your ideas, Klaus

    Well .... [toot horn]
    This is a link to a script I wrote in AutoIt that I used for many ZfD6 - 7 deployments. Was very successfully in getting the agent out and you run it from the login script.
    Zenworks 4x - 7.x Workstation Agent Automated Deployment - Novell: ZENworks FAQ - Tek-Tips
    I didn't write it to do a removal of the agent, but would be simple enough to be added. On the same forum site, in the Zen FAQ's I also posted the source code for the script I have been using to do ZCM deployments. In it has the code you would need to add to facilitate the uninstall of the agent so you can do a reinstall.
    Originally Posted by Croaker
    You may need put *everything* in a single batch file.
    I.e. app copies the zfdagent.msi to the workstation (it won't work off a
    server, because as soon as you stop the workstation helper/manger, the
    workstation will lose the ability to install from the network)
    Then executes the batch file
    The batch file stops the zenworks services, unloads the NAL (may not be
    necessary, not sure if the msi will do this)
    Batch file then installs the ZFD agent with the noreboot option.
    batch file restarts each service
    Problem will be the batch file really can't re-start the nal correctly.
    Since the batch file will be running under the SYSTEM scope, anything it
    launches will be under that scope too (ie.. the NAL), so when it loads, it
    wouldn't see any user-based apps.
    >>> On 7/1/2009 at 10:36 AM, in message
    <[email protected]>,
    dgibbons<[email protected]> wrote:
    > I would like to echo your question. I have a problem right now in
    > whichupgrading the agents from ZfD 7 SP1 ir3a to ir4 will break the agent
    > andthe only way I can recover is to manually uninstall the agent,
    > rebootand reinstall with ir4. I have not yet been successful in scripting
    > it(but then I am not that smart when it comes to scripting either) so
    > ifanyone has a good solution I too am very much wanting a method
    > thatworks. Thanks
    > Darcy--
    dgibbons--------------------------------------------------------------------
    ----dgibbons's Profile:
    > NOVELL FORUMS - View Profile: a10425 this thread:
    > Search for ZfD Agent install script - NOVELL FORUMS

  • Search for tablenames in the database using native sql query script

    How do i search for the names of the tables in the database using select statement? I do not know the names of the tables but I know the name of the database and i do not have the sys priviliges.
    thanks
    SS

    SELECT owner, table_name
    FROM all_tables;

  • In Pages document, how do I search for word and view its frequency and page numbers in a sidebar?

    I have a long document and I want to be able to search for certain key words and phrases, and then see how many times they appear in the document and exactly where.  How do I conduct this sort of search and viewing?  In the past, in Pages and Word, I've been able to view my "finds" in a sidebar but I can't figure out how to activate that service anymore.
    Thanks!

    Here is a word frequency concordance Automator Service that works in both versions of Pages. It does not present a page number reference. It is by descending count, and alphabetically, within the repetitive counts as shown in the image here. In any document, you select the text to process, then Menu > Application Name > Services > Frequency. The Service will open TextEdit with the n-pages of scrollable results. It is 16 pt Helvetica Neue for legibility.
    Here is the code:
    on run {input, parameters}
         try
              set mySelection to input as text
              set formatted_result to concordance(mySelection)
              if formatted_result is not null then
                   set textHeading to "Word Frequency List"
                   tell application "TextEdit"
                   activate
                         set NewDoc to make new document with properties {name:"Concordance"}
                         make new paragraph at beginning of text of NewDoc with data textHeading & return
                         make new paragraph at end of text of NewDoc with data formatted_result
                         tell text of NewDoc
                               set font to "Helvetica Neue"
                               set size to 16
                               set color of paragraph 1 to {0, 0, 65535}
                         end tell
                        end tell
              else
                        display dialog with title ¬
                         "No input selected" with icon stop ¬
                          giving up after 15
              end if
         on error errmsg number errnum
                    display alert ¬
                               "AppleScript Error" message errmsg & "[" & errnum & "]" as critical ¬
                                  giving up after 30
         end try
         return input
    end run
    on concordance(mySelection)
    -- Use Ruby to count word frequency and alphabetically sort words
        set rb to ¬
        "selected = String.new\nfreqs = Hash.new(0)\nselected = ARGV.join('  ').gsub(/[,.]/, \"\")\n
         words = selected.split(/[^\\w-]+/)\nwords.each { |word| freqs[word] += 1 }\n
         freqs_sorted = freqs.sort do |a,b|\n\t
         a.last == b.last ? a.first <=> b.first : b.last <=> a.last\nend\n
         freqs_sorted.each { |k,v| printf \"[ %8s ]          %s\", v, k }"
        do shell script "/usr/bin/ruby -e " & rb's quoted form & space & mySelection's quoted form
    end concordance
    Launch /Applications/Automator and choose New Document, then click the Service icon, and then select the Choose button.
    On the left, you will have a list of Libraries from which to choose workflow items. Find Library > Utilities. In the adjacent column, locate the Run Applescript workflow. Click on it, then drag and drop it in the large workflow window to your right.
    At the top, you can select Service receives text in any application. Leave Output replaces selected text unchecked.
    In your Run AppleScript workflow window, you will see AppleScript boilerplate. Click on it and press command+A, then backspace to delete this content. Copy and paste the above code into this Run AppleScript workflow window. Press the Run button in Automator's upper right corner. If (and it should) a TextEdit window pops up, you are good, and you want to press File > Save. A dialog box will pop-up where you can name your Service. I called my Frequency, you may wish to call it something else. Once you have save it, you can exit Automator. Services are deposited in yourlogin directory/Library/Services.
    If you have a Pages document open with text, either select it, or command+a to select the entire document. Now, you select your Service via Pages > Services > Frequency. This will now pop-up a new TextEdit document with the results. If you want to save this new document, you must use option+File to Save as...

  • I blog on TypePad using Word 2007 and documents freeze when I'm looking at them in Windows explorer; why do I get the error message that Mozilla is looking for a script?

    I have now had two error messages - the first one looked for this script: Script: resource://gre/modules/XPCOMUtils.jsm:258. The second one (today) looked for Script: resource://gre/components/nsPrompter.js:68.
    I have reset my word template, also reset word registry for data and options (as per Microsoft's help pages) for both those 'fixes' there was an initial improvement, but the problem happened again after I reposted on my blog today and then went to Windows explorer to view my files. It seems to 'seize' as I select a file, so that the preview does not appear (for up to 15-20mins).
    I see on the internet using the second script as a search just now that one other has had a similar problem and one also since Mozilla 4 upgrade. My problems have also been pretty much since I upgraded.
    It happens (apart from my fixes) every time I go to look at a word document via Windows explorer. Excel files are less affected.
    One web suggestion is to clear the cache, but I am hesitant to lose all my passwords unless I have to.

    I still have the problem although I uninstalled Mozilla (clearing the cache didn't work and neither did Word diagnostics), so have ended up thinking it could be Norton (the manual update worked x1) or Windows. Today I found an answer: disable the preview pane in Windows Explorer - there's a history of problems with this view.

  • Windows Server 2003 R2 Enterprise Edition 32 bits Service Pack 2 never finishes searching for updates and use 100% of CPU.

    Hi everyone, I am having issues updating a clean Windows Server 2003 R2 Enterprise Edition 32 bits Service Pack 2, so any help with be appreciated cause I've already tried all my cards for the past 5 days in this particular issue without success.
    All I did so far is installing Windows Server 2003 R2 Enterprise with Service Pack 2, open IE to update, it keeps searching for updates and never stop, after 20mn to 30mn the process svchost.exe start using 100% of my CPU.
    I already tried the following scenarios:
    1-  Install IE8, install the update KB927891 and the Windows Update Agent 3.0 (I already had this one installed). Reboot and run windows update trough IE8 and the problem did not solved.
    2- Install those 2 software "MicrosoftFixit.wu.MATSKB.Run" and "MicrosoftFixit50777", open IE to update, it still hangs and continues eating my CPU. This is the output of "MicrosoftFixit".
    Windows Update error 0x8007000D(2014-01-06-T-06_06_34A) --> Not Fixed
    Cryptographic service components are not registered (This service is actually running successfully) --> Not Fixed
    3- I found the following script that would register some DLL, deleting the "SoftwareDistribution" and forcing windows update to solve the problem and nothing happened either.
    Link to script:
    http://gallery.technet.microsoft.com/scriptcenter/Dos-Command-Line-Batch-to-fb07b159#content
    Here is a link to the content of my WindowUpdate.log file:
    https://skydrive.live.com/redir?resid=883EE9BE85F9632B%21105
    Thank you in advance for helping.

    All I did so far is installing Windows Server 2003 R2 Enterprise with Service Pack 2, open IE to update, it keeps searching for updates and never stop, after 20mn to 30mn the process svchost.exe start using 100% of my CPU.
    Herein is the root cause of your issue. A topic that's been discussed in several blogs, forums, and even in the media since September regards a known issue with attempting to patch IE6 RTM via Windows Update.
    Aside from that particular issue... browsing the Internet with an unpatched instance of IE6, especially from a Windows Server system, is also asking for a world of hurt.
    Might I suggest the following:
    Download the IE8 for Windows Server 2003 installer to a thumb drive.
    Download the latest Cumulative Security Update for IE8 for Windows Server 2003 to a thumb drive.
    Reinstall Windows Server 2003 with Service Pack 2.
    Upgrade to IE8 from the thumb drive installer and apply the
    Cumulative Security Update.
    Now your machine is capable of safely browsing to Windows Update to install the rest of the updates (well, maybe, there's also all those other Security Updates from the past seven years that your machine still has vulnerabilites for -- even those seven
    years of updates are going to take a Very Long Time to scan for, download, and install).
    Why don't you have a WSUS server? -- noting, wryly, that you've posted in the *WSUS* forum.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

Maybe you are looking for