Running multiple batch actions on the same folder?

We run Actions on a group of images using CS4 with the File->Automate->Batch function. We use this to take, for example, 200 images from a set folder, run an action to change them into a different colour and save in a different folder, we need to do this 20 times on the same images running a different script each time to change them into a different colour and save them in the same folder (with different file extensions)
Is there a way we can instruct Photoshop to run all of these 20 scripts (one after the other in a queue as it where) without having to "Babysit" it and ask it to run each one off ourselves?
Kind Regards
Steven

Do you use Photoshop in French?
Because Pierre has mentioned that Actions are called »Script« in French, but I think you are referring to Actiond and what I think you need in this case is a proper Script (in JavaScript preferably).
This Script could run Actions and hanlde the saving with additional name components to avoid overwriting etc.
You could ask for help over at
http://forums.adobe.com/community/photoshop/photoshop_scripting

Similar Messages

  • Running multiple batch actions on the same folder? One Click?

    We run Actions on a group of images using CS4 with the File->Automate->Batch function. We use this to take, for example, 200 images from a set folder and run an "Action" to create a rendered 2D design and save it in a different location to the source image and add an extension to the file name, leaving the source image unaltered. 
    The problem is that we then require to run this 20 times, each time, the difference is :- we want it to save to a different location and the "action" used is different because it changes the colour for example.
    The desired output is:
    FROM A JPEG ---> 20 folders (named as 20 different colours) and all our images rendered (as in our action) and saved into the 20 folders
    So we have 20 versions of each image
    Currently we simply set off the different actions in a batch separately, IE. 20 lots of batches to set off.
    So for example:
    * We have 200 jpeg images in folder [A]
    * We run a Batch function to run an "action" on all 200 images in folder [A] to render into our design and add a blue colour overlay (this is all done in the action itself) and to save them to folder [B] with the extension (BLUE) added to the filename.
    * Once Photoshop finishes running this Action on the 200 images (wish it would beep or something to let you know it was finished) we then run a batch to run a different "action" on the same 200 images in folder [A] to render the design and add a pink overlay and to save them in folder [C] with the extension (PINK) added to the filename
    And so on and so forth for the 20 different actions.
    Is there a way we can instruct Photoshop to run all of these 20 actions (one after the other in a queue as it where) without having to "Babysit" Photoshop and ask it to run each one off ourselves manually?
    Would we have to use JavaScript for this? We have no experience with JavaScript at all.
    We are currently using Photoshop CS4, is there a easier way to do this on CS5 or CS6?
    Kind Regards and Thanks in advance
    Steven

    Would we have to use JavaScript for this?
    I think it would be advisable but (if you don’t mind risking getting less help) you could use VB or AppleScript depending on your platform.

  • PowerShell using start job to run multiple code blocks at the same time

    I will be working with many 1000’s of names in a list preforming multiple function on each name for test labs.
    I notice when it is running the functions on each name I am using almost no CPU or memory.  That led me to research can I run multiple threads at once in a PowerShell program. That lead me to articles suggesting start-job would do just want I am looking
    for. 
    As a test I put this together.  It is a simple action as an exercise to see if this is indeed the best approach.  However it appears to me as if it is still only running the actions on one name at a time.
    Is there a way to run multiple blocks of code at once?
    Thanks
    Start-Job {
    $csv1 = (Import-Csv "C:\Copy AD to test Lab\data\Usergroups1.csv").username
    foreach ($name1 in $csv1) { Write-Output "Job1 $name1"}
    Start-Job {
    $csv2 = (Import-Csv "C:\Copy AD to test Lab\data\Usergroups2.csv").username
    foreach ($name2 in $csv2) { Write-Output " Job2 $name2"}
    Get-Job | Receive-Job
    Lishron

    You say your testing shows that you are using very little cpu or memory in processing each name, which suggests that processing a single name is a relatively trivial task.  
    You need to understand that using a background job is going to spin up another instance of powershell, and if you're going to do that per name what used to require a relatively insignificant amount of memory is going to take around 60 MB.  
    Background jobs are not really well suited for multi-threading short-running, trivial tasks.  The overhead of setting up and tearing down the job session can be more than the task itself.
    Background jobs are good for long-running tasks.  For multi-threading short, trivial tasks runspaces or a workflow would probably be a better choice.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Running multiple DAQ tasks at the same time

    I am trying to setup a program that would allow me to run different analog voltage waveforms on different channels.
    The rate at which samples hit each channel can be the same for all 32, but I want each to be sourced by an individual file I/O source.
    I saw the multiple tasks thread and I did try doing the multiple task approach first and needless to say got the same error.
    Saw something about software timed approach working better, but it is still a bit unclear in that post. Can i do with this card what I described above and if so is this software timing approach the way to go?
    Thanks in advance!

    Hi,
    What DAQ device and and programming language are you using, i.e., LabVIEW/CVI/.NET?   If you are new to DAQ, a great place to start are the example programs.  You can find the example programs with the Example Finder, located at Help >> Find Examples in both LabVIEW and CVI.  Once this opens, double click Hardware Input and Output >> DAQmx >> Analog Generation.  This will have many programs for generating waveforms.  I have also found a program online that might be worth looking at.  
    Continuous Multiple AO Waveforms
    Regards,
    Jim Schwartz

  • Running Multiple ODI Agents On The Same Server

    Is it possible to run multiple ODI Scheduler Agents simultaneously on the same Server?
    As we provide Work repository name in ODI params file and if we have different work repository
    and we want to run schedular agent on same server how can we point to the other work repository.
    Do we need to create another installation of ODI agent files on same server?
    Thanks
    Kashi

    Hey Kashi,
    You do not have to instal a separate Agent files again. All you need to do is to make sure that each set of agent has all the required parameter files which inclues, odiparams.bat , agentstart.bat and agentstop.bat(names may not be exactly same). Here is a website that gives you more details regarding creating multiple agents on same server
    http://www.business-intelligence-quotient.com/?tag=odi-agents
    regards,
    k

  • Running Multiple Web Dispatchers On The Same Server

    Is it possible to run multiple instances of Web Dispatcher on the same server?  I want to have one instance pointing to my WAS 6.40 system and the other instance pointing to my BW system.  I have set up two services on the NT server:  One named the standard sapwebdisp.exe and the other named sapwebdispbw.exe.  I am using two separate profile files, one for each instance.  The services start O.K.  However, when I attempt to access my BW system using the HTTP port as defined in the BW profile and the Web Dispatcher profile, I get a message back saying that "The server you are attempting to access has refused the connection with the gateway. This usually results from trying to connect to a service that is inactive on the server."  I have double checked that the service is running and that the BW system is up and available.
    Any help is appreciated.
    Regards,
    Doug

    Hey guys,
    it seems you are web dispatcher specialists
    I have problems connecting even one server
    I would like to add an Enterprise portal (DEP) to the web dispatcher.
    My config file :
    SAPSYSTEMNAME = SDM
    SAPGLOBALHOST = webdispatch
    SAPSYSTEM = 00
    INSTANCE_NAME = W00
    DIR_CT_RUN = $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTI386
    DIR_EXECUTABLE = $(DIR_CT_RUN)
    Accesssability of Message Server
    rdisp/mshost = 172.20.40.6
    ms/http_port = 8101
    Configuration for medium scenario
    icm/max_conn = 500
    icm/max_sockets = 1024
    icm/req_queue_len = 500
    icm/min_threads = 10
    icm/max_threads = 50
    mpi/total_size_MB = 80
    SAP Web Dispatcher Ports
    icm/server_port_0 = PROT=HTTP,PORT=80, TIMEOUT=120, EXTBIND=1, TIMEOUT=120, PROCTIMEOUT=120
    Is it possible for you to paste your config file here ? 
    With explanation what the portal name is en waht the web dispatcher name is ?
    The error I get :
    no valid destination server available for '!ALL' rc=7
    Where can I adjust this !ALL and !J2EE group ?
    Where can I manage the /link/ ? (like /irj/portal)
    If you need any info please let me know.
    THank you for your time & help
    BUD

  • EBMS/AS2 Multiple Business Actions with the same document

    We have an issue where we have a single document type (OrderResponse) that will have a different Business Action depending on which partner it is coming from.
    In testing this, we've found that the Business Action we setup in B2B MUST_ have the same name as the Business Action shown in the SOAP envelope of the received message (the user guide DOES NOT mention this AFAIK)
    To make matters worse - the same document is also used by another trading partner with AS2 which has NO SOAP envelope.
    So basically we have these combinations:
    TP# > XMLDocType > eb:CPAId > eb:Service > eb:Action
    TP1 > OrderResponse > OrderCreate > uri:OrderCreate > SendResponseEnd
    TP2 > OrderResponse > OrderCreate > uri:OrderCreate > SendFileResponse
    TP3 > OrderResponse > (n/a) > (n/a) > (n/a)
    Now, in setting up TP1 & TP2, we define 2 Business Actions for SendResponseEnd and SendFileResponse with the DocDefs using Action (no XPath).
    When TP3 comes along, we try setting up another Business Action with XPath. But that causes the first two to fail because it checks XPath first.
    If we could only get around the Business Action name requirement this would not be an issue as we could just define a single DocDef and Business Action for OrderResponse using XPath.
    Can anyone see a way to make this combination work? Does this same problem exist in 11g?
    We are currently on Release 10.1.2, Build B2B_10.1.2.4.0_GENERIC_091027.

    1) Patch 8703410 applied on Wed Nov 25 09:43:24 CST 2009
    [ Base Bug(s): 7652646 7497854 7664370 8708445 7661101 7007789 6352814 6802446 7665607 7641078 6496457 6013963 8330151 7305413 8619657 7460584 7529893 7458954 7020996 8393885 8210401 6329207 6740403 7126458 6511970 8783577 7379065 7230993 8704965 6774631 7198642 8309511 8392729 7661769 7605518 7479148 6733262 8349002 6736026 7322333 7242500 7239355 8746561 8344645 8451004 7645440 6747966 6369424 6737334 8339176 6774134 7046561 6412124 7210461 7506319 8630406 8235175 7258882 7184318 6453359 7456866 7673646 6043277 7457597 6769895 7193710 8239170 7668247 8404955 8612841 7261965 7132740 7485790 6518386 7305363 6852370 6433256 7673431 6764239 8360048 7501748 7379153 8281019 7498031 8216457 7046574 6875312 6754906 6656289 6417367 7658271 7556011 7000190 6979467 8594506 8691820 6852308 8475848 8518443 7600385 7211208 6732051 8524862 7461051 8263026 7609467 7379161 7672714 6353293 7157229 7594997 7211287 7034069 7563311 6822375 6640935 7359202 6769261 6919593 8601869 6029507 6974391 7139013 7518641 8605719 6817264 7501903 7496014 7576785 8666761 7130151 7322581 5523563 7680097 8508905 7241737 7660780 8480395 7660781 7191994 6924921 7672723 8432093 6800745 8703404 8540335 8507242 8608121 8217566 7481317 6639030 6200414 7529795 7354853 8475867 7376270 7303860 7016005 7678901 7368610 8992520 6881977 6016128 7033061 6397084 7672730 8703410 7709562 6449656 7045589 8508054 6491068 7378745 7643811 7435853 7615836 8707416 6447557 7379042 6940476 7670634 6950383 6764273 6962327 7478322 8546454 7157324 8871403 8862082 7184219 7672744 7164618 7672745 7230184 7576730 7590301 8746541 7261863 8327427 6769430 8295683 7526186 8298731 6414280 6139955 6646997 7692853 8233048 6794296 7457066 8552373 8225241 7706387 7204022  ]

  • Running Multiple Forte ADEs on the same box

    You can run multiple versions of Forte by installing them in different
    directory paths and setting environment variables to point to the
    correct one. For example:
    REM Setup Forte Environment
    set FORTE_ROOT=k:\forte\qa2
    set FORTE_NS_ADDRESS=stardev:5022
    REM Run application
    ftexec -fi k:\userapp\rightsto\cl3\rights0
    Running multiple versions concurrently is ok.
    DO YOU YAHOO!?
    Get your free @yahoo.com address at http://mail.yahoo.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi Pichaiah,
    Set the property -Dtangosol.coherence.localport=8050 when running the first node of the second cluster.
    The problem is with the property tangosol.coherence.localport, default value=8088 so when you run the first cluster, the WKA port matches the port used by the local node and so it able to form the cluster. But when you run the second cluster, the first node is looking for a member which is using the port =8050 for cluster formation which will not happen until you set the property -Dtangosol.coherence.localport=8050 on one of the nodes.
    Hope this helps!
    Cheers,
    NJ

  • Running multiple oracle versions on the same server...

    Hi, I have a server that is currently running oracle rdbms 10.2.0.3 on linux Itanium platform and the database that is currently on that server uses oracle ASM for it's files.
    We have a need to also run a oracle rdbms 10.1.0.3 on the same sever and I would like to know if this is possible and will the 10.1.0.3 database be able to use the already installed and running ASM instance that has been created during the 10.2.0.3 install?
    Thx.

    Because it is not just a new database we are trying to migrate an exisiting database to this new server and there is too much data which is time sesitive and the original machine is not very powerful and the only way I can foresee us being able to migrate in a time that would meet our requirements in to use dataguard to setup a physical syandby on the new server and then perfrom a failover to get the database live on the new hardware.
    Thats why we are kinda stuck with the 10.1.0.3 database at this point in time until we can get it moved onto a server and staorage platform that will also allow us to upgrade in a timely fashion as welll. So your next question is why don't we just upgrade the existing database where it is know well the reason I am reluctant to upgrade on the existing server is because we only have access to tape backups on this system and I do not have alot of faith on the tape restore as it take a long time to complete and can be error prone.

  • Running multiple weblogic servers on the same JVM

    Is there a way to make Weblogic 7.0 and Weblogic 5.1 run on the same JVM? If so
    what are the pros and cons?

    I hope you also checked the IPCKEY (and all other identifiers of that kind)
    in your ubbconfig file: they should all be different.
    We have similar configurations running without any major difficulty.
    One catch: very heavy IPC activity (due to errors in the application,
    never because of heavy user load) in one environment sometimes overloads
    the OS, resulting in hung applications in the other environments.
    Regards
    Frank
    "Manoj SASIDHARAN" <[email protected]> wrote:
    >
    Hi Troy,
    Here are a few tips:
    1. Check the APPDIR values in both environments. They should point to
    the appropriate
    directories containing the Tuxedo server binaries for each environment.
    Analyse
    the values of APPDIR environment variable and also inside the UBBCONFIG
    file.
    2. Check the WSL address. Both environments should have different ports
    for listening
    to requests.
    3. Check the WSNADDR environment variable at the client side. They should
    point
    to the appropriate WSL addresses.
    HTH
    regards
    MS

  • Problem running multiple folder actions at the same time

    Hi,
    Does anyone have some experience running multiple folder actions at the same time?
    I've written a Applescript folder action that processes some files. When adding some files, the script starts and all goes well. The processing of each file takes a few minutes, but all files are processed correctly.
    However, when adding some new files to the dropfolder, while the folder action is all ready processing other files dropped a few minutes earlier, the process that is all ready running immediately aborts and the folder action is relaunched on the new files, leaving the old files for what they are...
    The same problem occurs with multiple folders, each having a folder action attached. When dropping files in "Folder A", the script starts processing. But if someone droppes files in "Folder B", The script of folder A aborts, and the script of folder B starts processing. When adding more files to the folders, the result is the same. In some casses, when the last dropped files are processed, the os continues where the operation was aborted on the previous files. But this not always happens. To make things worse, when you remove the items from the folders afterwords, the folder actions starts running again on items no longer present in the folder !!!!
    Does anyone know how I can prevent the folder action being aborted when new files are dropped and placing the new files in "Hold", until the previous files are processed? How can I prevent a folder action being aborted when a item is dropped into another folder?
    I've written a small script to test this behaviour. Just create one or more folders and attach the script below. Drop a item into the folder, wait a few seconds and drop another one in the same or another folder. To monitor what happens please check the console.
    on adding folder items to this_folder after receiving added_items
              set FolderName to this_folder as string
              set ItemName to added_items as string
              repeat with theIncrementValue from 1 to 15
      delay 2
                        do shell script ("logger \"Folder: " & FolderName & "  -  Item: " & ItemName & "  -  Step: " & theIncrementValue & "\"")
              end repeat
              do shell script ("logger \"Folder: " & FolderName & "  -  Item: " & ItemName & "  -  Done...\"")
    end adding folder items to
    Thanks for any feedback.

    That is pretty much the way Folder Actions work, especially since AppleScript is not multi-threaded.  If you are using them as some intermediate step in a workflow, you might rethink the way you are handling the files (for example, use a droplet instead).  Other options would be using launchd to watch a path or a shell script on a different thread.

  • Batch convert Pages files to Doc and stay in the same folder?

    Hi there,
    I use iWork '09 on Mountain Lion. I recently switched to Microsoft Word and prefer it over Pages (personal preference). However, I have nearly 1000 files on my computer that are in Pages format. I have extensively searched this issue in the Apple Support Communities and it appears that there are scripts that DO EXIST that batch convert Pages files into Word files. However, it appears that many of these scripts were built for older versions of iWork and therefore I run into various errors. For example, I used the script available at http://pagesfaq.blogspot.com/2008/01/export-folder-to-word-rtf-pdf-txt-or.html and click run but nothing actually happens (the script runs for less than a second, then I can click run again). I was able to use one script successfully (pasted below), but the only reason I can't use it is because it saves ALL my converted documents in one folder on my desktop and I would like a script that can save them in the original file were the Pages document is located.
    So, is there an iWork '09 compatible script that can convert my Pages documents to Word documents and save them in the same folder as the original? Oh, and for an added bonus, it'd be cool if the script also deleted my Pages version after it was done with the conversion
    --[SCRIPT batch_exportPages2DOC] (* Enregistrer ce script en tant que script ou progiciel. Exécuter ce script ou déposer l'icône d'un dossier sur son icône. Il ouvre tout document Pages du dossier et l' enregistre en fichier DOC  dans le dossier "was_Pages_now_DOC". Celui-ci peut être sur le bureau ou dans le dossier "~/Documents". Si le GUIscripting n'est pas activé le script demande votre mot de passe pour l'activer. Le script récupère le dossier d'exportation par défaut dans le fichier de préférences de Pages. Éviter de cliquer durant l'exécution du script sauf évidemment pour sélectionner le dossier source. ************* Save the script as script or application bundle. Run it or drag and drop a folder icon on its icon. It opens every Pages's documents stored in the folder and save it as DOC file in a folder named "was_Pages_now_DOC". This one may be on the desktop or in the "~/Documents" folder. according to the property storeOnDesktop. If GUIscripting is disabled the script ask for your password to enable it. The script extract the default export path from the Pages's preferences file. Don't click when the script is running. Except, of course, to select the source folder. ************* Yvan KOENIG (VALLAURIS, France) 2008/04/20 2009/06/17 adapté pour format .doc 2009/12/13 updated for MacOs 10.6… *) property theApp : "Pages" property theExt : "pages" property nomDuRapport : "report_Pages2DOC.txt" property nom_du_dossier : "was_Pages_now_DOC" property storeOnDesktop : true (* true = dest folder will be on Desktop false = dest folder will be in "~/Documents" *) property msg1 : "" -- globale property msg90 : "" -- globale property msg91 : "" -- globale -- property msg92 : "" -- globale property msg94 : "" -- globale property msg96 : "" -- globale property msg99 : "" -- globale property rapport : "" -- globale property dossierDeStockage : "" -- globale property dossierParDefaut : "" -- globale property localExport : "" -- globale property newExt : "" -- globale property newType : "" -- globale property isOs4 : missing value -- globale property isOs5 : missing value -- globale property theMenu : missing value -- globale property menuExport : missing value -- globale property types : {{"doc", "SLDocumentTypeMSWord", 2}, {"pdf", "SLDocumentTypePDF", 1}, {"txt", "SLDocumentTypePlainText", 4}, {"rtf", "SLDocumentTypeRichText", 3}, {"rtfd", "SLDocumentTypeRichTextBundle"}, 3} --===== (* our settings *) property typeNum : 1 (* 1 = WORD, 2 = PDF, 3 = Txt, 4 = rtf, 5 = rtfd *) property theButton : missing value (* 1          button PDF 2          button Word 3          button RTF 4 button Standard *) --===== on run (* lignes exécutées si on double clique sur l'icône du script application • lines executed if one double click the application script's icon *)             tell application "System Events" to set dossier to choose folder (* dans un bloc System Events pour avoir un titre de dialogue "localisé" • in a System Events block to get a localized dialog title. *)           my commun({dossier})             --          my commun({"Macintosh HD:Users:yvan_koenig:Desktop:for_see:" as alias}) end run --===== on open (sel) (* sel contient une liste d'alias des éléments qu'on a déposés sur l'icône du script (la sélection) • sel contains a list of aliases of the items dropped on the script's icon (the selection) *)           my commun(sel) end open --===== on commun(elems)           my nettoie()           my prepareMessages()             tell application "System Events"                     if not (UI elements enabled) then set (UI elements enabled) to true (* Active le GUI scripting • Enable GUI scripting *)                     set titres to title of processes           end tell -- to System Events             if theApp is not in titres then my activateTheApp() (* Active et ferme la fenêtre du document créé à l'ouverture • Activate and close the doc's window created at opening *)           set {newExt, newType, theButton} to item typeNum of types (* item 1 = {"doc", "SLDocumentTypeMSWord",2} item 2 = {"pdf", "SLDocumentTypePDF",1} item 3 = {"txt", "SLDocumentTypePlainText",4} item 4 = {"rtf", "SLDocumentTypeRichText",3} item 5 = {"rtfd", "SLDocumentTypeRichTextBundle",3} *)           set sysAtt to (system attribute "sys2")           if 4 > sysAtt then                     if my parleAnglais() then                               error "This script requires MacOs X 10.4 or higher !"                     else                               error "Ce script requiert MacOs X 1.4 ou ultérieur !"                     end if           else if 5 > sysAtt then                     set isOs4 to true                     set isOs5 to false                     if my getVersion() < "4" then                               set theMenu to 3                               set menuExport to 13                     else                               set theMenu to 10                               set menuExport to 9                     end if           else if 6 > sysAtt then                     set isOs4 to false                     set isOs5 to true                     if my getVersion() < "4" then                               set theMenu to 3                               set menuExport to 13                     else                               set theMenu to 10                               set menuExport to 8 (* was a wrong 9 *)                     end if           else                     set isOs4 to false                     set isOs5 to false                     if my getVersion() < "4" then                               set theMenu to 3                               set menuExport to 13                     else                               set theMenu to 10                               set menuExport to 8 (* was a wrong 9 *)                     end if           end if           my fermeFenetres() (* • Close existing windows *)             my afficheLeMessage(msg1) (* Éviter de cliquer… • Don't click… *)           tell application theApp to set localExport to localized string "Export"           set dossierParDefaut to my getDefaultExport() as text           set rapport to ""           set dossierDeStockage to my creeDossierDeStockage(nom_du_dossier) (* Unicode text *)             try                     repeat with elem in elems                               try                                         my exploreTraite(elem as alias, "")                               end try                     end repeat                       if rapport = "" then set rapport to msg90                     -- crée un fichier texte sur le Bureau                     set p2d to path to desktop                     set p2r to (p2d as Unicode text) & nomDuRapport                     tell application "System Events"                               if exists (file p2r) then delete (file p2r)                               make new file at end of p2d with properties {name:nomDuRapport}                     end tell                     set rapport to rapport as text                     write rapport to (p2r as alias)             on error MsgErr number NroErr                     if NroErr is not -128 then                               beep 2                               tell application (path to frontmost application as string) to ¬                                         display dialog "" & NroErr & " : " & MsgErr with icon 0 buttons {msg99} giving up after 20                     end if -- NroErr is…                     return           end try             my nettoie()           if my parleAnglais() then                     my afficheLeMessage("Export done.")           else                     my afficheLeMessage("Traitement terminé.")           end if end commun --===== on nettoie() (* pour ne pas stocker dans le fichier script • So it will not be stored in the script file *)           set dossierDeStockage to ""           set dossierParDefaut to ""           set rapport to ""             set localExport to ""           set newExt to ""           set newType to ""           set isOs4 to missing value           set isOs5 to missing value           set theMenu to missing value           set menuExport to missing value           set theButton to missing value           set msg1 to ""           set msg90 to ""           set msg91 to ""           set msg92 to ""           --           set msg94 to ""           set msg96 to ""           set msg99 to " " end nettoie --=====  on afficheLeMessage(m)           beep 1           tell application (path to frontmost application as string)                     activate                     if my parleAnglais() then                               display dialog m buttons {" OK "} default button 1 giving up after 10                     else                               display dialog m buttons {" Vu "} default button 1 giving up after 10                     end if           end tell end afficheLeMessage --===== on creeDossierDeStockage(Nom) (* S'il n'existe pas, construit un dossier destination sur le bureau ou dans "~/Documents" • If does not exist, create a destination folder on the desktop or in "~/Documents" *)           local dd, dds           if storeOnDesktop is true then                     set dd to path to desktop as Unicode text           else                     set dd to path to documents folder as Unicode text           end if             if Nom ends with ":" then                     set dds to dd & Nom           else                     set dds to dd & Nom & ":"           end if           (* dossierDeStockage n'existe pas, on le crée • dossierDeStockage is not available, build it *)           tell application "System Events" to if not (exists item dds) then make new folder at end of folder dd with properties {name:Nom}           return dds as Unicode text end creeDossierDeStockage --===== on exploreTraite(elem, ptree) (* elem est un alias • elem is an alias *)           local elem_, cl_, type_Id           set elem_ to elem as Unicode text           tell application "System Events" to tell disk item elem_                     set cl_ to class                     if cl_ is folder then                               set type_Id to ""                     else                               set type_Id to type identifier                     end if           end tell --  "System Events"           set cl_ to cl_ as Unicode text             if type_Id is in {"com.apple.iwork.pages.pages", "com.apple.iwork.pages.sffpages"} then (* C'est un fichier Pages. • It's a Pages document *)                     my TraiteUnDocument(elem_)           else if cl_ is in {"file package", "«class cpkg»"} then                     set rapport to rapport & msg91 & elem_ & return (* "Package", Attention, un package EST un dossier "spécial". • Caution, a package IS a "special" folder. *)           else if cl_ is in {"folder", "«class cfol»"} then                     my ExploreUnDossier(elem_, ptree)           else                     set rapport to rapport & msg92 & elem_ & return (*  "Pas un document Pages". • "Not a Pages's document" *)           end if -- typeId_ is … end exploreTraite --===== on ExploreUnDossier(dossier, ptree)           local nomElement, cheminElement, c           repeat with nomElement in list folder dossier without invisibles                     set cheminElement to dossier & nomElement                     tell application "System Events" to set c to name of (dossier as alias)                     my exploreTraite(cheminElement as alias, ptree & c & ":")           end repeat end ExploreUnDossier --===== on TraiteUnDocument(leCheminOriginal_UniText)           my export2Doc(leCheminOriginal_UniText as alias, leCheminOriginal_UniText) end TraiteUnDocument --===== on export2Doc(p, leCheminOriginal_UniText) (* • here p is the path as alias *)           local flag, nom_de_p, nouveauChemin, w, bof, x, p_xport           try                     tell application theApp                               open p                               set flag to false                               repeat 300 times (* Attends que le fichier soit réellement ouvert. • Wait until the file is really open *)                                         if my getNbWindows() > 0 then                                                   set flag to true                                                   exit repeat                                         end if                               end repeat                     end tell -- to theApp                     if flag is false then error number 8888 (* Le fichier n'a pu être ouvert. • The file can't be open. *)           on error MsgErr number NroErr                     if NroErr = 8888 then                               set rapport to rapport & msg94 & leCheminOriginal_UniText & return                     else                               set rapport to rapport & "### " & MsgErr & " ### " & errNbr & return                     end if                     return (* can't do the remaining tasks *)           end try             tell application "System Events" to tell file leCheminOriginal_UniText                     set nom_de_p to name           end tell -- System Events             if nom_de_p ends with theExt then set nom_de_p to text 1 thru -(2 + (length of theExt)) of nom_de_p           set nouveauChemin to dossierParDefaut & nom_de_p & "." & newExt           --log nouveauChemin           tell application "System Events" to if exists (file nouveauChemin) then set name of file nouveauChemin to nom_de_p & my horoDateur(modification date of file nouveauChemin) & "." & newExt (* name stamped *)           try                     set {w, bof} to my getFrontWindow()                       tell application "System Events" to tell application process theApp                               click menu item menuExport of menu 1 of menu bar item theMenu of menu bar 1 (* Exporter… *)                               repeat until exists sheet 1 of window w                                         delay 0.1                               end repeat                               tell sheet 1 of window w (* sheet containing the buttons PDF, Word, RTF, Standard *)                                         --          get properties of UI elements of radio group 1                                         if isOs4 then                                                   click button theButton of radio group 1                                         else if isOs5 then                                                   click checkbox theButton of radio group 1                                         else                                                   click radio button theButton of radio group 1 (* I hope that they will no longer change it *)                                         end if -- isOs4 is true                                         (*                                         if typeNum is 2 then                                                   delay 0.2                                                   tell pop up button 1                                                             click                                                             click menu item quality of menu 1                                                   end tell                                                   delay 0.2                                         end if                                         *)                                         click button 1 (* Suivant… *)                                         repeat until exists button localExport                                                   delay 0.1                                         end repeat                                         click button localExport (* Exporter… *)                               end tell -- to sheet…                                 repeat 20 times                                         if exists sheet 1 of window w then                                                   click button 2 of sheet 1 of window w (* "Ne pas consulter " dans éventuel rapport d'anomalies • "Don't review" in sheet reporting possible export anomalies *)                                                   exit repeat                                         end if                                         delay 0.1                               end repeat                     end tell -- to process … System Events                       if dossierDeStockage is not dossierParDefaut then (* we must move the file from folder dossierParDefaut to folder dossierDeStockage *)                                 set p_xport to dossierDeStockage & nom_de_p & "." & newExt                                 tell application "System Events" to if exists (file p_xport) then set name of file p_xport to nom_de_p & my horoDateur(modification date of file p_xport) & "." & newExt                               tell application "Finder" to duplicate file nouveauChemin to folder dossierDeStockage (*                               • before 10.5, System Events is unable to move *)                                 my wait4File(p_xport)                                 tell application "System Events" to if exists file nouveauChemin then delete file nouveauChemin                     end if -- dossierDeStockage is not…                     my ferme1fenetre()             on error errMsg number errNbr                     set rapport to rapport & msg96 & p & return & errMsg & " ### " & errNbr & return           end try end export2Doc (* ===== • Build a stamp from the modification date_time *) on horoDateur(dt)           local annee, mois, jour, lHeure, lesSecondes, lesMinutes           set annee to year of dt           set mois to month of dt as number (* existe depuis 10.4 *)           set jour to day of dt           set lHeure to time of dt           set lesSecondes to (lHeure mod 60)           set lHeure to round (lHeure div 60)           set lesMinutes to (lHeure mod 60)           set lHeure to round (lHeure div 60)           return "_" & annee & text -2 thru -1 of ("00" & mois) & text -2 thru -1 of ("00" & jour) & "-" & text -2 thru -1 of ("00" & lHeure) & text -2 thru -1 of ("00" & lesMinutes) & text -2 thru -1 of ("00" & lesSecondes) (* • Here, the stamp is  "_YYYYMMDD-hhmmss" *) end horoDateur (* ===== • Take care, the front window may be an Inspector or a dialog one. *) on getFrontWindow()           local namesOfWindows, w, flag           tell application theApp to activate           set flag to false           tell application "System Events" to tell application process theApp                     set namesOfWindows to name of every window                     repeat with w in namesOfWindows                               if subrole of (get properties of window w) is "AXStandardWindow" then                                         set flag to true                                         exit repeat                               end if                     end repeat           end tell           return {w, flag} (* • w is the name of the front document's window *) end getFrontWindow (* ===== • Wait that the file is completely written on disk *) on wait4File(p) (* • p must be Unicode text *)           local oldSize, nnn, newSize           set oldSize to 0           tell application "System Events" to set nnn to name of file p             repeat                     try                               tell application "System Events" to set newSize to physical size of file p                               if oldSize < newSize then                                         set oldSize to newSize                               else                                         exit repeat                               end if                     end try           end repeat end wait4File --===== on activateTheApp()           local bof, status           tell application theApp to activate           if my getStartingStatus() is false then tell application "System Events" to tell application process theApp to keystroke return           repeat                     set {bof, status} to my getFrontWindow()                     if status is true then exit repeat           end repeat end activateTheApp (* ===== • Close existing open windows *) on fermeFenetres()           repeat while my getNbWindows() > 0                     my ferme1fenetre()           end repeat (* • Now there is no open window *) end fermeFenetres --===== on ferme1fenetre()           tell application theApp to activate           tell application "System Events" to tell application process theApp to keystroke "w" using {command down} end ferme1fenetre --===== on getPlistValue(valName, default)           local thePlist, u           set thePlist to (path to preferences folder as Unicode text) & "com.apple.iWork." & theApp & ".plist"           tell application "System Events"                     if exists file thePlist then                               tell contents of property list file thePlist                                         try                                                   set u to (value of property list item valName) (* Unicode Text *)                                         on error (* On est là si Pages n'a rien enregistré avec des préférences neuves • Here if Pages never saved with the new preferences file. *)                                                   set u to default                                         end try                               end tell -- to contents of…                     else (* On est là s'il n'y a pas de fichier de préférences • Here if there is no preferences file. *)                               set u to default                     end if           end tell -- to system events           return u end getPlistValue --===== on getStartingStatus()           return my getPlistValue("LSDefaultsUseDefaultStartingPoint", false) end getStartingStatus --===== on getDefaultExport()           local u           (* son of a *****, I forgot that they don't use the same name !! *)           if theApp contains "Pages" then                     set u to my getPlistValue("SLDocumentDefaultExportDirectory", "~/Documents")           else if theApp contains "Numbers" then                     set u to my getPlistValue("LSDocumentDefaultExportDirectory", "~/Documents")           else                     error "I didn't coded a Keynote version !"           end if             set u to (POSIX file (do shell script "echo " & u)) as text           if u ends with ":" then                     return u           else                     return (u & ":")           end if end getDefaultExport --===== on getNbWindows()           tell application "System Events" to tell application process theApp to return count of windows end getNbWindows --===== on getLocale(a, x)           tell application a to return localized string x end getLocale --===== on getVersion()           try                     tell application theApp to return version           on error                     return "1"           end try end getVersion --===== on parleAnglais()           local z           try                     tell application theApp to set z to localized string "Cancel"           on error                     set z to "Cancel"           end try           return (z is not "Annuler") end parleAnglais --===== on prepareMessages()           if my parleAnglais() then                     set msg1 to "Don’t click when the script is running." & return & "Except, of course, if it ask for."                     set msg90 to "No problem during the export process."                     set msg91 to "Package"                     set msg92 to "Not a " & theApp & "’s document"                     --                     set msg94 to theApp & " can’t read it"                     set msg96 to "Not copied."                     set msg99 to "Oops"           else                     set msg1 to "Éviter de cliquer durant l’exécution du script" & return & "sauf s’il le demande."                     set msg90 to "Exportation réussie sans incident."                     set msg91 to "Package"                     set msg92 to "Pas un document " & theApp                     --                     set msg94 to theApp & " n’a pas pu le lire"                     set msg96 to "Pas copié."                     set msg99 to " Vu "           end if           set msg91 to "### " & msg91 & " ###  "           set msg92 to "### " & msg92 & " ###  "           --           set msg94 to "### " & msg94 & " ###  "           set msg96 to "### " & msg96 & " ###  " end prepareMessages --===== --[/SCRIPT]

    Try this app: http://tyorex.com/iWorkConverter
    Batch convert Pages files to doc and pdf.

  • Creating Multiple iPhoto ibraries on the same hard disk/same folder

    Is this possible? Since iPhoto does not support multiple events inside an event, is there a way to create multiple libraries on smae disk and in the same picture folder? I want to separate some pictures into several libraries, but I want them to be on the same external HDD and in the same folder - how do I do this? How do I create another/separate library? Thanks!

    Easy. Hold down the option (or alt) key and launch iPhoto. Choose 'Create library'. IF you're going to have them in the same folder be sure to give them distinctive names.
    Since iPhoto does not support multiple events inside an event, is there a way to create multiple libraries on smae disk and in the same picture folder?
    It's just curiosity, but how does this a: make up for the fact that you cannot nest Events? and b: Won't Albums (and folders of Albums) create the same in a single library - especially as you can only have one library open at a time?
    Regards
    TD

  • Recruitment: Multiple Actions on the same day

    Hi expert,
    Understand that in PA, we are able to perform multiple actions on the same day with the aid of Additional Actions infotype (0302).
    However, in Recruitment module (i.e. PB), we are unable to perform the above, the previous action record will be deleted, thus we can't keep track of the actions taken.
    Can we extend the use of Additional action infotype to Recruitment (PB db) ? or is there other way to perform multiple actions on the same day in Recruitment ?
    All advises are appreciated.
    cheers,
    Sophie Tran.

    Hi,
    Please check the below link for that..
    http://sap.ittoolbox.com//groups/technical-functional/sap-hr/recruitment-multiple-actions-on-the-same-day-384674
    Thanks & Regards,
    Sandip Biswas

  • Multiple users pointed to the same location as their "Home Folder"

    One of the things we need to be able to do for out work is share folders. We are project based and do not want to store the projects in the users "eDirectory User" home folder. We made some initial test assigning two users to the same "Home Folder" and shared a folder and had multiple accounts both internal and external pick-up and drop off files in the folder.
    While it appears to work, I wanted to find out if there are downsides in having 20-30 people with the same Filr "Home Folder". What are the potential "gotchas". Security (internal) isn't an issues since these network locations are accessible by all the users anyway.
    Daniel Wells AIA, VCP
    Senior Associate | IT Coordinator
    MHTN Architects, Inc.
    Direct: 801.326.3215 | www.mhtn.com
    vision made real

    Hi!
    Gotchas?
    Well, it essentially does exactly what it is supposed to do.
    (BTW, i have tested this with Filr 1.0.1 some time ago, if 1.1 behaves
    differently this would bw a MAJOR product change.)
    Given:
    Two internal Users A+B with the homedirs pointing to the exact same path
    \\Server\Dir
    One external User c@tld
    * User A logs in and creates a directory X and shares it with contribute
    rights to c@tld.
    * User c@tld logs in and creates a file X\file
    * User B logs in, see a folder X and the file with A as the author. The
    folder IS NOT shared to everyone (at least as far as user B is concerned,
    the user does NOT set the sharing details of user A)
    * User B shares the same folder X with c@tld with view only rights.
    * User c@tld clicks the link from User B and IS NOT able to contribute.
    * User c@tld is puzzled and calls User A asking why his rights have been
    revoked.... etc. etc.
    * User B has the (for him readonly) data somewhere else and calls the folder
    X obsolete and deletes it.
    * User A and c@tld are really pissed off.... etc. etc.
    * User c@tld has several different links with potentially different rights
    all pointing to the same physical location...
    etc.
    Again, it does exactly what it is supposed to do - from a technical point of
    view, but this might not be what the users/organization can
    handle/expect...
    Georg
    >>> Daniel Wells<[email protected]> schrieb am 05.11.2014 um 20:54 in
    Nachricht <[email protected]>:
    > One of the things we need to be able to do for out work is share
    > folders. We are project based and do not want to store the projects in
    > the users "eDirectory User" home folder. We made some initial test
    > assigning two users to the same "Home Folder" and shared a folder and had
    > multiple accounts both internal and external pick-up and drop off files in
    > the folder.
    >
    >
    >
    > While it appears to work, I wanted to find out if there are downsides in
    > having 20-30 people with the same Filr "Home Folder". What are the
    > potential "gotchas". Security (internal) isn't an issues since these
    > network locations are accessible by all the users anyway.
    >
    >
    >
    >
    >
    >
    > Daniel Wells AIA, VCP
    > Senior Associate | IT Coordinator
    > MHTN Architects, Inc.
    > Direct: 801.326.3215 | www.mhtn.com
    > vision made real

Maybe you are looking for

  • Copying Hyperlinked Text from PDF to Word (or elsewhere)

    Hello- I am at my wit's end, so I hope someone can help... I have a PDF with text that hyperlinks to a web page. It works great within Acrobat Pro, but if I try to copy and paste that text/hyperlink into an email, or word file, it loses the underlyin

  • What all information will i loose if I sync iPhone with another computer?

    Hey, Just wanted to understand what all information will i loose if i sync my iphone with another computer? will i loose my contacts and messages? Thanks Cheers Divesh

  • SMTP ERROR in Messenger Express

    This is iMS 5.2. You compose a message in messenger express, click send then a greeted by a small popup window with the comtents that simply read "SMTP ERROR". In the http log (/msg-luke/log/http/http) you find: [12/Jul/2002:15:18:26 -0500] luke http

  • Help!!Adobe Reader 10.1.2 wont Install (Erorr msg) Saying

    (No Valid sequence could be found for the set of patces) I am runing XP Home with fire fox, google chrome, Enternet explore, I have tryed all 3 and Adobe reader will down load and open to install when installing It stops and shows this msg I have try

  • STRANGER GETS MY LAND LINE NUMBER FROM MY IPHONE CALL

    Using my iPhone, I called a stranger in error.  He answered, whereby I realized my mistake.  Instead of being courteous, as I should have been, and saying, "Sorry, wrong number," I simply hung up.  This apparently upset him, because he subsequently c