QUESTION FOR Applescript / Automator killers

Hi guys,
Can someone tell me a way to select folder(s) by the type of files of their content ?
and then pass them as variable to proceed a search only in those folders ?
For example :  get every folders containing .wav files ---> = Variable
Search files named "xxx.app" in all the folders of Variable...
Automator or applescript are welcome .
Thanx in advance.
Best from paris (sorry for my english)
Nico

okay this is how i want it to work but it didn't ...
Where am i wrong ??
i feel im getting closer thanx to you
on run {input, parameters}
          set filesFound to do shell script "
OLDIFS=$IFS
IFS=$'\\n'
a=($(find ~/Documents -iname '*.wav' -execdir pwd \\; | sort -u))
for i in \"${a[@]}\"
do
          find \"$i\" -iname '*.app'
done
IFS=$OLDIFS
          set theResult to quoted form of filesFound
          repeat with i from 1 to the count of theResult
                    set this_file to (item i of theResult)
                    tell application "Finder" to open this_file
                    tell application "System Events"
                              if exists (process "my process") then
                                        repeat until not (exists (process "my process"))
                                                  delay 1
                                        end repeat
                              end if
                    end tell
          end repeat
end run
Message was edited by: Nico44044

Similar Messages

  • Looking for AppleScript / Automator Help

    I have a spreadsheet of 2000+ users which includes their user ID, email address and a temporary password. I need an automated way to individually e-mail each user their user ID and temporary password, along with a paragraph of login instructions. It doesn't seem too overly complex but I don't know where to start. Can anyone point me in the right direction?

    All due respect to Camelot, working with Excel is not so bad, you just need to work around its limitations.  the following should work, without the need of creating a tab-delimited file:
    tell application "Microsoft Excel"
      -- use the correct range for your data, obviously
              set theSpreadsheetPeople to value of range "A1:C2000" of worksheet 1 of document 1
    end tell
    repeat with thisPerson in theSpreadsheetPeople
              set {userid, email, pass} to items 1 thru 3 of thisPerson
              tell application "Mail"
                        set newMess to make new outgoing message at end of outgoing messages with properties {subject:"This is the Subject line", sender:"[email protected]", visible:true}
                        tell newMess
      make new to recipient at end of to recipients with properties {address:email}
                                  set content to "Text string with email contents, including user id: " & userid & " and password: " & pass
                        end tell
      -- uncomment the following line to send automatically
      -- send newMess
              end tell
    end repeat
    test it a few times on a short list of data lines (say 4 or 5 lines) with the send command commented out, so that you can make sure that the email is being structured properly and looks the way you want it to.  Once you're satisfied, you can uncomment the send line and use visible:false in the make new outgoing message line.  that will let Mail create and send the emails invisibly.  but again, make sure the emails are being created correctly before you uncomment that send line - nothing worse then sending out a bulk message with errors in it.

  • How on EARTH to parameters work in AppleScript Automator Actions for SL?

    Prior to Snow Leopard, creating a new AppleScript Automator Action would create a template something like...
    on run{input, parameters}
    but now, on Snow Leopard, I get:
    on runWithInputfromAction_error(input, anAction, errorRef)
    where to I get the 'parameters' collection from? If I just reference 'parameters', without it being declared in some way, I get errors....
    I assume there is some new mechanism in SL, what is it??
    Thanks

    Sorry, I misunderstood what you said the first time around. I thought that you wanted to use the +Run AppleScript+ action within Automator but now I see that you are trying to create a new Automator action using applescript. Now that I try it in Xcode I to get the same method/handler signature. Tried to look at the [Mac Dev Center|http://developer.apple.com/mac/library/documentation/AppleApplications/C onceptual/AutomatorTutorialAppleScript/Introduction/Introduction.html] but it hasn't been updated lately. Also tried looking at the [Automator Programming Guide|http://developer.apple.com/mac/library/DOCUMENTATION/AppleApplications/Co nceptual/AutomatorConcepts/Articles/ImplementScriptAction.html#//apple_ref/doc/u id/TP40001512] and the documentation for [AMBundleAction|http://developer.apple.com/mac/library/DOCUMENTATION/AppleAppli cations/Reference/AutomatorFramework/Classes/AMBundleAction_Class/Reference/Refe rence.html] but can't figure anything out. Sorry I don't have much experience in Xcode, so can't help you much with that.

  • I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. Need process under the hood

    I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. I need to know what process is run under the hood to create such a script.
    To put you in context, I have an NFS mount point with all my music and with the "add to library" command, I can add more music to the folder and update iTunes without dragging the individual folders or the whole mount point and avoid having the songs show up as doubles.
    Anyone know what OS/Unix process is being called for such a command?

    I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. I need to know what process is run under the hood to create such a script.
    To put you in context, I have an NFS mount point with all my music and with the "add to library" command, I can add more music to the folder and update iTunes without dragging the individual folders or the whole mount point and avoid having the songs show up as doubles.
    Anyone know what OS/Unix process is being called for such a command?

  • Do Applescript / Automator work with Final Cut Express?

    Hey list,
    I'm a nubie in all things Applescript / Automator related. Does Final Cut Express support commands from these? For example, can I tell it to go pick up a batch of photos I created, put them in a seqeunce, and export them as an MOV? If so, it would make my life a lot easier
    -Chris
    Message was edited by: Chrisryantaz

    Hi(Bonjour)!
    If you want to drive an appication by applescript or automator, this application has to be "driveable" by script.
    If you open Applescript editor, select dictionnary and look if the application appears. If not, it cannot be driven by scripts.
    FCE is not scriptable. You can automate the lauching of the app itself (from finder scripts) but no more.
    But with select all command, you can drag all your stills (they will be inserted in the same order as they appear in column list view) in timeline.
    Also, use the "storyboard tips" by placing them in a diffrent order in icon view (in perfect row and column), select all and drag in timeline. The order will be respected from upper left-corner to lower-right.
    Michel Boissonneault
    Message was edited by: Michel Boissonneault

  • What is the best practice for AppleScript deployment on several machines?

    Hi,
    I am developing some AppleScripts for my colleagues at work and I don't want to visit each of them to deploy my AppleScript on their Macs.
    So, what is the best practice for AppleScript deployment on several machines?
    Is there an installer created by the Automator available?
    I would like to have something like an App to run which puts all my AppleScript relevant files into the right place onto a destination Mac.
    Thanks in advance.
    Regards,

    There's really no 'right place' to put applescripts.  folder action scripts nees to go in ~/Library/Scripts/Folder Action Scripts (or /Library/Scripts/Folder Action Scripts), anything you want to appear in the script menu needs to go in ~/Library/Scripts (or /Library/Scripts), script applications should probably go in the Applications folder, but otherwise scripts can be placed anywhere.  conventional places to put them are in ~/Library/Scripts or in a subfolder of ~/Library/Application Support if they are run by an application.  The more important issue is to make sure you generalize the scripts: use the path to command to get local paths rather than hard-coding them in, make sure you test to make sure applications or unic executables you call are present ont he machine, use script bundles rather tna scripts if you scripts have private resources.
    You can write a quick installer script if you want to make sure scripts go where you want them.  Skeleton verion looks like this:
    set scriptsFolder to path to scripts folder from user domain
    set scriptsToExport to path to resource "xxx.scpt" in directory "yyy"
    tell application "Finder"
      duplicate scriptsToExport to scriptsFolder with replacing
    end tell
    say "Scripts are installed"
    save this as a script application, then open the application pacckage and create a folder called "yyy" in the resources folder and copy your script "xxx.scpt" into it.  other people can run the app to install the script.

  • Why to give "HTTP Destination" for Webservice automation using eCATT

    Hi,
    can anybody tell me, for Webservice automation  why to give "HTTP Destination"  in System Data Container when we have "RFC Destination" to connect to Target System.
    Best Regards,
    Pradeep
    Edited by: Pradeep Singh Rawat on Jul 15, 2009 8:17 AM

    Hi pradeep,
    Any SOA architecture follows below process
    Consumer -call ->HTTP layer( SOAP)->WS layer-->Application->DB
    Our WS data is in WS layer mostly in form of XML,
    To call any XML code we need a SOAP protocol and we need HTTP for this.
    I hope you question is answered.
    regards
    vinay

  • Questions for Melodyne users

    What a wonderful tool. I have some Logic-specific questions for those of you that are using it.
    1. How can I get the Transfer files that Melodyne creates to be stored with the project?
    2. If I've tuned up a section of a vocal, and then want to copy that region to
    another place in the song, will my edits get copied as well? I am thinking about how Logic allows you to move automation in and out of regions.
    3. Has anyone had the Transfer process spontaneously stop? It does so to me about one time in four. Usually I start again and it's OK. OS X 10.6, LP 8.02.
    Thanks.

    fredrp wrote:
    1. How can I get the Transfer files that Melodyne creates to be stored with the project?
    I gues you are refering to Melodyne Editor? There is a setting in Melodyne preferences which allows you to set the transfered files location.
    2. If I've tuned up a section of a vocal, and then want to copy that region to
    another place in the song, will my edits get copied as well? I am thinking about how Logic allows you to move automation in and out of regions.
    What you hear is in fact melodyne, not Logic in this track so you can hear edits made in Melodyne. What you do in the track is ignored so you can't copy a fragment to another position directly in the track. But if you copy the fragment in Melodyne's window then you will hear it. I hope you got what I mean
    3. Has anyone had the Transfer process spontaneously stop? It does so to me about one time in four. Usually I start again and it's OK. OS X 10.6, LP 8.02.
    No I hadn't. There are 2 options to start the transfer - first is: (1) click start in Logic (2) hit 'transfer' in melodyne. The second way is (1) hit 'transfer' (2) click start in Logic. I use UAD plugins and once I found somewher in the Melodyne forum that the second way is better if you use some specific plugins. Because I use the second way for that reason it is possible that I don't have the issue you describe.
    Message was edited by: samplaire

  • Are qt-tracks switchable per Applescript/Automator?

    my idea is the following scenario:
    I do have a Quicktime.mov containing TWO video tracks.
    What I'm looking for is a 'single button'-solution, which allows to switch between both tracks.
    possible? how?
    any ready-made scripts/actions avail?
    to give additional info about my project:
    I'm recording soccer games with two (... four) cameras simultanously.
    the team's coach needs a 'dumb' solution (no word about soccer-coaches! ) , to see the action from one or the other perspective.
    it's simple to stitch the two videos into a single mov, and I do know how to 'select tracks on display' in QT7pro.
    but he doesn't.
    my idea is, to create a (local, on usb-stick) website, offering that video. (and additional info)
    or, even better, a Pages/iBooks document .......
    plus a 'switch'-button, which is a kind-of applescript/automator action/whatever, which changes 'priority'. that way both videos are always in synch.-
    anybody any idea?
    thanks in advance
    k.

    I'm recording soccer games with two (... four) cameras simultanously.
    the team's coach needs a 'dumb' solution (no word about soccer-coaches! ) , to see the action from one or the other perspective.
    it's simple to stitch the two videos into a single mov, and I do know how to 'select tracks on display' in QT7pro.
    but he doesn't.
    Hi Karsten, it's been while since I last saw a posting by you here.
    Simplest approach would be to create a file containing side-by-side or over-and-under display of two angle cameras or a combination of the two to display four simultaneous camera angles. If you combine, align, and offset the video tracks in QT 7 Pro and then compress to your target diplay file, then the sync alignment of the source tracks will be locked in the combined frames of your final output file unlike individual source tracks each of which might drop frames independently during playback in a multiple video track standalone file. This, of course, means that all viwing angles are displayed simultaneously and the viewer must switch his or her attention to the specific angle of interest but does allow you to play the file in any compatible media player, on a web site or on any compatible mobile device without having to program track switching which may or may not be compatible will all of the viewing options previously mentioned.
    A second approach would be to key your video tracks to alternative language options and have the viewing angle (track) change when the associated language is selected. Unfortunately, this only works in apps/on devices which support built-in alternate languages and/or multiple video track control. For instance, it QT X and QT 7 will switch the video track when the appropriate language is selected but VLC has separate built-n video track switching controls and iTunes doesn't recognize alternative video tracks. Unfortunately, there is a secondary problem with this approach. Playback can sometimes become jittery after switching tacks. This problem can be correctly by momentarily stopping playback and then restarting it but this can be a pain.
    A third option might be the use of sprite buttons to script switching between tracks. Unfortunately, I can't say how difficult or successful this approach may be based on any personal experience.

  • New  discussion category request -- Applescript & Automator

    Dear Administrators, Jay T. et. al,
    I think it would be a nice addition to the Aperture Discussion if you added a new sub-category for us: Applescript & Automator.
    Scripting and automation will be a big part of Aperture's future success. It will make it easier for us propeller heads to monitor developments it we have a dedicated category we can subscribe too. I won't subscribe to the entire General Usage cagegory because there would be to much daily traffic on unrelated topics.
    I don't think this will prevent the general audience from seeing interesting posts on these topics.

    It would be nice to have a good location for more technical posts along those lines. Don't let the lack of one stop you though!

  • Calendar triggered sending of emails via AppleScript / AutoMator

    Let us say that I have groups defined in my Contacts app.
    I want an AppleScript / Automator workflow that will send a predefined text (with placeholders for first name) a predefined number of hours (say 12 hours) before a calendar event / date (say Thanksgiving) one by one to each person in a specified group.
    I guess I could spend a few hours building this, but it sounds like something someone must have done before.
    Any pointers?
    Thanks.

    Sorted it. I need to change addRecipient to setRecipient.

  • How can you change your security question for I tunes?

    How can you change your security question for I tunes?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then the steps half-way down this page give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

  • I have a new email address and my old email keeps coming up on icloud when trying to update apps and i don't know the password or security questions for the old email. I can sign in with my apple id which is tied to another email but not itunes how to fix

    I have an apple id and it has my current email attached to it. however when i go to update apps it's asking for the password for an old email. I no longer have the old email and can't use it. when I go to icloud on my ipad it asks for the password for old email. it doesn't allow me to change the old email to current. when i go to reset it i can't remember the password or security questions for the old email so it doesn't let me go any further. How do I fix this? Do i need to call apple support?

    I have the same problem - it is maddening. I rely on this iPad for work so this is not just an annoyance! The above solutions of changing the appleid on the device or on the website do not work.
    The old email address no longer exists - I haven't used it in a year probably and I no longer have the account.  I logged into the appleid website and there is no trace of the old email address so there is nothing that can be deleted or changed there.  On the iPad there is no trace of the old email address so nothing can be deleted there either. I have updated the iPad software and the same problem comes right back.  Every 2 seconds I am asked to log in using the old non-existent email.  The device is currently useless.
    The only recent change to anything was the addition of an Apple TV device, which was set up using the correct login and password.
    Does anyone have any ideas? The iPad has been backed up to the iCloud so presumably it now won't recognize the current iCloud account? So restoring may notbe an option?

  • I am having trouble answering my old security questions for my itunes account and it is creating a problem because I am not able to purchase apps/songs on my new IPAD. What phone number/email adress should I call to get a quick response to my issue?

    I have recently bought an IPAD 2 for my girlfriend and have encountered a problem with purchasing apps through my itunes account. It is requesting that I not only enter my pasword (which I know) but answer my old account questions, which I have forgotten the answers to. It had since locked me out of changing my questions for eight hours. Is there any number I can call to prove that I am the real owner of my itunes account so my girlfriend will be able to use her ipad to purchase new apps without having to go through the trouble of using one of my other apple devices? Random information: I believe my questions were set back in 2007 when I purchased my first ipod nano, since then I have used this same itunes account for my own ipod touch and ipad 2 and my girlfriends iphone 1st generation. I have never run into a problem regarding my questions before on any of these devices

    http://www.apple.com/support/itunes/contact/

  • Can somebody give some real time questions for alv report

    hi guru
    can somebody give some real time questions for alv report.
    answers also.
    regards
    subhasis.

    hi,
    The ALV is a set of function modules and classes and their methods which are added to program code. Developers can use the functionality of the ALV in creating new reports,  saving time which might otherwise have been spent on report enhancement
    The common features of report are column    alignment, sorting, filtering, subtotals, totals etc. <b>To implement these, a lot of coding and logic is to be put. To avoid that we can use a concept called ABAP List Viewer (ALV).</b>
    Using ALV, we can have three types of reports:
       1. Simple Report
       2. Block Report
       3. Hierarchical Sequential Report
    <b>Reward useful points</b>
    Siva

Maybe you are looking for