Automator/Script Editor to function as a preset

Is there a way to make either Automator or Script Editor function as a preset in Aperture? The action I would like to be able to do, once an image or images are selected, is to do an Auto Levels Adjustment followed by an Enhance preset, and then possibly a sharpening adjustment. These are three actions that comprise the majority of adjustments I do on run-of-the-mill images. Lift and stamp won't accomplish this because it applies the same (lifted) levels changes to subsequent images, no matter what the original levels were. I just want it to do a fresh-from-the-original auto levels each time. I guess I want a one-button quick-fix.
Thanks, Bill

try something like this saved as an app
tell application "AppleScript Editor"
activate
make new document
set the bounds of the first window to {0, 0, 1440, 894}
make new paragraph at beginning of document 1 with data "hello world"
end tell
tell application "TextEdit"
activate
make new document
set the bounds of the first window to {0, 0, 1440, 894}
make new paragraph at beginning of document 1 with data "hello world"
end tell
Budgie

Similar Messages

  • Connect to Home Computer using Mail / iChat / Automator / Script Editor

    http://screenerschoice.com/video_tutorials/ScreenSharing/ScreenSharing.html
    1. Start with Automator > Choose Custom Workflow
    2. Drag Launch Application into the window and choose iChat
    3. With whatever account you have signed at home (you need 2 accounts), make sure it is logged on. On automator, hit the Record button and Watch Me Do will start recording. (You have to do it in this sequence and no shortcuts or it can get hung up and not continue with the script.)
    4. Choose the Finder > Applications > Type iChat > Hit Apple O (for open)
    5. In the iChat window for your buddy list click once on the name you want to share with
    6. Then on the top menu, go to Buddies > Share my screen with ....
    http://screenerschoice.com/video_tutorials/ScreenSharing/Automator.png
    7. Save this workflow as an application
    8. Open Applications > Applescript > Script Editor
    9. Hit Record
    10. Go to Finder > Then keep going through until you find the application you just created and double click on it. Then hit stop on Script Editor.
    11. Save this as an application as well. Mail will run these apps, but not the Automator apps.
    12. Go to mail and go to rules
    13. Create a rule with a few stipulations that will trigger the script. This way, not just anyone can send a script to your computer to control it. It would have to meet all the criteria you set it. Then in the action list in the rule, go to run applescript and choose the file you created with Script Editor.
    14. In mail at the other computer, it needs to be set to check mail every so often. I do mine every minute.
    15. Also on that computer, the finder window needs to be open. If it is not, the script will not run properly. I don't have time to figure out a workaround for that, so in the meantime, I just open the finder window and minimize it to my dock.

    Haven't tired it yet, but a thought would be to create an alias of iChat and place it on the desktop. Then save your scripts on the desktop as well. When you run everything from the desktop, you shouldn't have to have a Finder window open.

  • Error when using function CDbl in Script Editor

    Hello,
    While using the CDbl function in the Script Editor I am getting the following error:
    Error - 13 - Type mismatch: 'CDbl' at Line 24
    The reason I am trying to use CDbl is that I get another error while importing the data from a .CSV file
    Import Error = TC - [Amount=NN|http://forums.oracle.com/forums/] 01-000-1030,Cash in Bank - Payroll,837.83,0.00,"1,569.50",0.00
    Any suggestions would be appreciated.
    -Tony

    Tony,
    Please keep in mind that pressing 'Save' and then 'Run' without using the script in a workflow is sometimes not a valid test. As the scripting generally created inside of FDM needs to be part of a workflow and certain variables/functions are passed when that workflow is executed as a whole.
    Hopefully this helps...

  • Creating ABAP function module in using an automated script

    I wish to create very simple ABAP function modules through an automated script. Is there any way I can do this?

    [http://code.google.com/p/saplink/]
    Greetings,
    Blag.

  • ICM Script Editor 'Search' 'Find' function, won't stop. Bug? 8.5.2

    Script Editor issue; UCCE 8.5.2
    When I use the "Find Nodes" function in script editor, to find a string in 'all active scripts' the results are displayed eventually. Once displayed though, the search immediately begins again, preventing selection of any of the results.
    It feels like a bug, & has a huge impact on usability of the search feature. It can also occasionally cause scripted.exe to crash.
    I think it is likely because there are a large number of scripts in our environment, but there is no way around that right now.
    I was considering opening a TAC, but thought there may be simple fix in the wild that someone could share here.
    Is there a way to extend the refresh period for the search function? Or can the automatic refresh be disabled entirely?
    Appreciate any help, thanks in advance.
    Edwin

    Were you able to find a fix for this issue or did you ever open a case with TAC?  We are having this issue as well it seems along with another problem that recently started where certain updates that are made in CCMP load one at a time instead of as a bulk update in UCCE. 
    The example I was shown today by two end users was where one did an update of 93 Agent Desktops in CCMP and while viewing the other users Script Editor on an AW the update process to refresh the config within ICM occurred as normal then again and again for guessing around 92 more times in a row which basically stops all work in Script Editor till the config refresh is completed.  It looks like it is loading only one update at a time instead of all of them at once.  I do not know if this has to do with the type of resource being updated (in this case Agent Desktop settings) or not but it doesn't seem to happen with say Agent moves so far.  So for a very large company like ours this can have a huge impact to script updates and configuration changes.
    If you can update on how you either resolved this or if a case was opened what the number for the ticket was I can reference that with the support case I will be opening for this.  
    Thanks in advance! 

  • How can I use Automator to toggle the Function Keys?

    I am trying to create a Automated process to toggle the Function Keys on my keyboard. This is because I use several programs, including After Effects, which use the F1-12 keys, but when I am not using that program I commonly use the Apple-defined shortcuts on the keyboard. I have a full-sized keyboard, hence no Fn key. So that's out right away – I've read several comments on this topic where people suggested that this is the ONLY option. I refuse to beleive that.
    Automator contains a "Watch Me Do" feature, which I have tried to use to record this process. Problem is, it never clicks the right object. If I record clicking the dock, the magnification (I suspect) throws off the virtual-controlled mouse and picks the wrong object. If I record the Apple Menu route, it gets it about 1/2 the time.
    I think what I'm really looking for is a console command I can feed into the Terminal which toggles the keys. It seems to be that this HAS to be an option, even if it is more than one line of commands. I believe if I can feed this process into Automator, it would work.
    Any ideas?
    Thanks in advance, Mac Geniuses!

    iKey lets you define function keys per application. You seem to want to turn on & off the defined apple keys.  Not sure if these keyboard re-mappers will do the trick.
    Here is my other most favored application. Of course, I haven't checked these out in newer OS's. I'm a Tiger man myself.
    iKey is a front end program that simulates typing and mouse movements. I use iKey to remap the Function keys.
    "iKey is an automation utility, a program that creates shortcuts to accomplish repetitive tasks. In essence, an iKey shortcut is a little program in its own right, but you don't need to know the first thing about programming to create an iKey shortcut. All you have to do is put together three necessary parts of a shortcut: One or more commands that give the shortcut its functionality, a context in which it runs, and a launcher that defines how the shortcut is activated."
    http://www.scriptsoftware.com/ikey/
    iKey  has a little more function then the previous free version called youpi key. For many years, I used youpi key before switching to iKey.  It works fairly well for me in MAC OS 10.4 although not officially supported.  The youpi key download is hard to find & no longer here.
    http://www.versiontracker.com/dyn/moreinfo/macosx/11485&vid=75326
    ( Send me a message for a copy of youpi  key. )
    *Examples:*
    I have the common programs that I use assigned to function keys. I have F4 assigned to Firefox. When I want to start FireFox, I press F4. When I want to switch to firefox, I press F4! Starting & switching to an application in Mac OS are the same thing in Mac OS.
    Here is an example of to assign volumn control to a function key.
    http://discussions.apple.com/message.jspa?messageID=10361085#10361085
    Here is my script for listing my application folder. I have it assigned to function-key 6.
    tell application "Finder"
       open folder "Applications" of startup disk
       select Finder window 1
       set bounds of Finder window 1 to {-3, 44, 691, 545}
       --set position of Finder window 1 to {33, 44}
       set position of Finder window 1 to {60, 45}
       activate
    end tell
    The second portion of this script was generated in the script editor record mode. After I recorded the script and did some editing, I copy the script to ikey/youpi key.
    Full Key Codes
    http://download.cnet.com/Full-Key-Codes/3000-2094_4-44175.html
    Spark
    "Spark is a powerful, and easy Shortcuts manager. With Spark you can create Hot Keys to launch applications and documents, execute AppleScript, command iTunes, and more... You can also export and import your Hot Keys library, or save it in HTML format to print it. Spark is free, so use it without moderation!"
    http://www.versiontracker.com/dyn/moreinfo/macosx/22675
    Mac OS X remap or rename keyboard keys
    by vivek
    So how do you remap or rename keyboard keys under Mac OS X?
    Simply use DoubleCommand software.  It is a free program
    http://theos.in/apple/download-doublecommand-to-remap-keyboard-keys/
    Keyboard Maestro is a powerful macro program for Mac OS X (including Tiger and Leopard) which has received glowing reviews. Keyboard Maestro will take your Macintosh experience to a new level in “Ease of Use”. With Keyboard Maestro you can design a custom action sequence with your own shortcuts and use them at any time, you can navigate through running applications and open windows with Program Switcher, and you can work with an unlimited number of clipboards - all by pressing simple keystrokes.
    http://www.keyboardmaestro.com/main/
    "Spark is a powerful, and easy Shortcuts manager. With Spark you can create Hot Keys to launch applications and documents, execute AppleScript, command iTunes, and more... You can also export and import your Hot Keys library, or save it in HTML format to print it. Spark is free, so use it without moderation"
    http://www.versiontracker.com/dyn/moreinfo/macosx/22675

  • How to define variables in toad sql script editor - newbie

    I have just pull out the script of a Function and want to run it on toad SQL editor.
    I am little bit confused how to define the VARIABLEs here in toad SQL editor to run my script.
    SELECT
    NVL(SUM(debit), 0) - NVL(SUM(credit), 0)
    INTO l_accountBalance
    FROM
    GLP_VoucherMaster vm
    INNER JOIN GLP_VoucherDetail vd ON vm.GLP_VoucherMaster_ID = vd.GLP_VoucherMaster_ID
    INNER JOIN GLP_ChartOFAccounts coa ON vd.GLP_ChartOfAccounts_ID = coa.GLP_ChartOfAccounts_ID
    WHERE
    vm.isActive = 'Y' AND vd.isActive = 'Y'
    -- *** how to define variables in toad sql script editor ***
    AND vm.voucherDate < p_cDate
    AND coa.AccountCode LIKE p_accountCode || '%';
    Thanks
    w\

    Just prefix with a colon (:)
    SELECT   NVL (SUM (Debit), 0) - NVL (SUM (Credit), 0)
      INTO   L_accountbalance
      FROM           Glp_vouchermaster Vm
                 INNER JOIN
                     Glp_voucherdetail Vd
                 ON Vm.Glp_vouchermaster_id = Vd.Glp_vouchermaster_id
             INNER JOIN
                 Glp_chartofaccounts Coa
             ON Vd.Glp_chartofaccounts_id = Coa.Glp_chartofaccounts_id
    WHERE       Vm.Isactive = 'Y'
             AND Vd.Isactive = 'Y'
             AND Vm.Voucherdate < :P_cdate
             AND Coa.Accountcode LIKE :P_accountcode || '%';
    /:p

  • How do I schedule an automator script to run at a certain time every day?

    How do I schedule an automator script to run at a certain time every day?
    This used to be done through iCalendar and this option is no longer available.
    How do I do this?
    --Kenoli

    Kenoli Oleari1 wrote:
    How do I schedule an automator script to run at a certain time every day?
    This used to be done through iCalendar and this option is no longer available.
    How do I do this?
    --Kenoli
    You can use lauchd to run the script.
    Here's an example of an Automator App that I have scheduled to run at 7am daily:
    You would save this as com.yourname.plist and put it the the Folder: ~/Library/LaunchAgents/ (then log out and back in, or reboot)
    (To run a workflow, change open to automator)
    (A nice GUI launchd editor is Lingon)
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
              <key>Label</key>
              <string>com.tonyt.EventReport</string>
              <key>ProgramArguments</key>
              <array>
                        <string>open</string>
                        <string>/Users/Tony/Library/Scripts/Events Report.app</string>
              </array>
              <key>StartCalendarInterval</key>
              <dict>
                        <key>Hour</key>
                        <integer>7</integer>
                        <key>Minute</key>
                        <integer>0</integer>
              </dict>
    </dict>
    </plist>

  • Using a SecureString password in an automated script?

    Hello all,
    I've been having issues getting a secure string to work with an automated script.
    Basically, a piece of software we use can accept commands via powershell/command shell but requires a password for the commands to be run.
    I've spent a fair amount of time researching the ConvertFrom and ConvertTo methods and tried without success. (When trying to use the ConvertFrom/To methods the software gives back incorrect password errors).
    Can anyone please assist?

    Hi Jonathan,
    you can simply use the $SecurePassword variable from Basty's example (if you need a secure string) and pass this as Password. Please note though, this will only work if the account writing the credentials to file is also the same account used to read it
    from file.
    If you need to encode it for another account (like local system), you can use the
    Encrypt-Credential function-script (The example on how to retrieve a clear-text password in memory will also work with Basty's $cred object).
    On a final note:
    Encrypted or not, try to avoid writing passwords down if you can somehow avoid it. If possible, assign permissions to the account running the task, if the service you are accessing supports windows authentication and privileges.
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • Service failure automation script

    Hi All,
    I have configured the below mentioned code on our prod servers services to send email notifications when ever a service fails. 
    On Error Resume Next
    strComputer = "USDFW16AS61"
    Const cdoSendUsingPickup = 1
    Const cdoSendUsingPort = 2
    'Function block to dynamically retrieve the file size of the report file.
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    'Authentication type used for SMTP server.
    'We are currently using 0, cdoAnonymous
    Const cdoAnonymous = 0 'Do not authenticate
    Const cdoBasic = 1 'basic (clear-text) authentication
    Const cdoNTLM = 2 'NTLM
    'Creates message subject, we are using variables declared earlier in the script
    Set objMessage = CreateObject("CDO.Message")
    objMessage.Subject = "CMS Production service iwutild is stopped"
    'Sets the From address
    objMessage.From = """Support DL"[email protected]
    'Sets the destination, or TO address
    objMessage.To = [email protected]
    'Sets the CC address. Only used for testing purpose at the moment. Should be commented out when in use.
    'objMessage.CC = ""
    'Sets the message body, the actual email message. Variables are used in the message which was declared earlier.
    objMessage.TextBody = "Dear Administrators, the xyz service is now in STOPPED state." & vbCRLF & vbCRLF & "Please do not reply to this message as it was sent to you by an automated Script."& vbCRLF & vbCRLF &
    "Thanks and regards"
    'objMessage.TextBody = "Dear Application Administrators,"  & vbCRLF & ""& vbCRLF & ""& vbCRLF &
    objMessage.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
    'Name or IP of Remote SMTP Server
    objMessage.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "servername"
    'Type of authentication, NONE, Basic (Base64 encoded), NTLM
    objMessage.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = cdoAnonymous
    'Your UserID on the SMTP server
    objMessage.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendusername") = ""
    'Your password on the SMTP server
    objMessage.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendpassword") = ""
    'Server port (typically 25)
    objMessage.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
    'Use SSL for the connection (False or True)
    objMessage.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False
    'Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server)
    objMessage.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
    objMessage.Configuration.Fields.Update
    '==End remote SMTP server configuration section==
    'Sends the message using code.
    objMessage.Send
    This script is able to send notification only for the respective service that I have configured it to Run upon failure.
    My requirement now is that the script should be able to detect out of the 6 app services that are down & should append the email body with the name of that service & send an email.
    I understand Wscript.argument(0) can be of use but not able to use it. Could you kindly help?
    Thanks,
    Pankaj
    P.S: I am not a developer, so kindly bear with me :)
    Pankaj Dhoot

    Hi Pankaj,
    To solve the script issue, I would like to recommend you to post in the Visual Studio Languages forum for more effective support:
    http://social.msdn.microsoft.com/Forums/en-US/home?category=vslanguages
    or The Official Scripting Guys Forum!
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Thank you for your understanding.

  • Script Editor Not Working

    I have a problem with the script editor that is login (Windows login, not Oracle login) dependent. For some Windows users, the script editor doesn't work properly. For those users, the editor page will appear but the edit pane cannot be written. In addition the line number for the first line is not present. The buttons for upload and other functions do not function. If any scripts are already present, the icons appear, but clicking on them does not bring them up in the edit pane.
    For other Windows users, everything works normally.
    For all Windows users, the initial login to the database appears to work fine.
    It is clear that the problem is related to some property of the Windows login for the various users, but I don't know where to start looking. Does anyone have a suggestion?
    Thanks in advance.

    I am having this same problem in Linux. I am using Ubuntu 8.04 and I am following the tutorial at:http://st-curriculum.oracle.com/tutorial/DBXETutorial/index.htm
    I seem to be able to load a sample data file, but trying to access the file in the script editor, I cant see the file. I even tried to manually make a load_sample.sql file, but the script editor doesnt let me. Any help to get this working would be appreciated.
    thanks,
    blu.....

  • Development on SharePoint on-line using JavaScript in an Script Editor

    Hi,
    I’m doing a SharePoint development on SharePoint on-line using JavaScript in a Script Editor. I've changed the Calendar NewForm.aspx  in SharePoint designer and I should check the Start Date and End date and I should change the procedure of Save button.
    The problem is I cannot have the component ID’s. I even tried to create new components and rebuild the form but my script sometimes working and sometimes not working.
    I've also tried SharePoint Apps in Visual Studio 2013 and Napa but I have problems  accessing SP lists.
    Could you please advise me?

    Hi Sachin,
    Before I read you reply, I had a "Eureka" moment that I was about to write about.  I got my Javascipt to read my the value that was set in the Filterdropdown!  However, you somewhat burst my balloon with the revelation about how re-sizing
    window changes their size (i.e., Large to Medium, etc)?  It is true, my function does not work when I click the "restore down" icon on the upper right corner of my window, then it works again when I maximize the window.  That sucks : (
         Oh, well.  Thanks just the same!
    For what it is worth, here is the script I wrote:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
        <script language="javascript">
            //This function reads the digest using /contextinfo.
            function ShowAlert()
                alert(document.getElementById("Ribbon.ContextualTabs.MyWork.Home.Data-Large-2-1").textContent);
        </script>
    </head>
    <body>
    What filter am I set to?  Click the Button snd I will tell you... <input type="button" value="Button" onclick="ShowAlert()";/>
    </body>
    </html>
    \Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)

  • Action Playback option changes the Result of an Automated Script.

    When using the Playback Option in the Actions menu, then the  Results are different with different Acceleration methods.
    So the Result is different with, Accelerated - Step by Step - Pauze for [1],
    I Expierence the issue with Windows and Mac as well.
    This happens with Illustrator CS5 (15.0.1)
    # Workflow
         Creating the action:
         Open Illustrator, open the attached document: 4102107 Exact.pdf
         Create an New Action, enable Transform window
         Select the Black Square and the Red text Exact
         Go to Object, Scale > 33.3% and press Copy.
         Then go to Transform an from the upper corner and enter on the
         x=397,13 pt y=212,25 pt
         You see the Image moved to the correct clip.
         Open the Document in Illustrator,
         Go to Actions > Select the created action >Now go to the Panel Menu from Actions > Select Playback option.
         You get a new Dialog where you can select a different acceleration mode: "Step by Step" - "Accelrated" - "Pause for [Numeric] Seconds"
         So the issue is, when you select here a different accelration the result is different.
    >Is this as Designed? If So, why because when i understand the function of an automated script. It should exactly get the same
    result as programmed, why else would you want to use the script if the result with be different without nothing.
    There is running an Escalation case about this, But hopefully anybody more experienced can comment me about this. Or inform wheter  it's a bug?
    Please help me in this. (thank you in advance!)

    To make a few things clear I have created a Video of the issue.
    Have a look on:
    http://adobesupport.emea.acrobat.com/p65456795/
    Maybe i really blow in explaining what exactly happens, but i'll try it again.
    When creating an action (as shown in the Video) You can see that the result
    is totally different and when creating the action. This is error 1.
    - I recieved a respons that we just shouldn't use the Transform Panel. So i requested to know why there is a panel created, if we cannot use it.
    No respons.
    Then when you select a Playback option in the setting of the Actions Panel,
    the Result differs. As you can see when executig in the Accelerated the Movement gets placed WAY out of the file.
    When selection Step by Step or Pause for [Numeric] Seconds, then the result is that the movement gets placed
    at the bottom of the file. Both of the Results don't even come close in the Action which is created.
    Hopefully this will calrify what i ment.

  • Calling SAP-script editor

    Hi all,
    I have to call one script editor with my own Text-id and text-object just like to enter header text and item text in VA01 transaction. This should be happen after pressing my own function code. Is there any possibility to do this.
    Thanks in advance,
    pavan

    Hi,
    You can't call your own Text editor from the std transaction VA01 just like that.
    In that VA01 already lot of Texts at header and Item are predefined with the related OBJECT,ID,OBJECTNAME.
    If you want you can create your own Std texts in SO10 Tcode and can call them in the Script using INCLUDE statment.
    reward if useful
    regards,
    ANJI

  • Calling Script Editor

    Hi all,
    I have to call one script editor with my own Text-id and text-object just like to enter header text and item text in VA01 transaction. This should be happen after pressing my own function code. Is there any possibility to do this.
    Thanks in advance,
    pavan

    Hi after pressing the button on the sy-ucom call the following 2 FM in sucession
    a) EDITORCALL
    b) SAVE_TEXT with the set of lines returned from editor call.
    Hope that Helps
    Anirban M.

Maybe you are looking for

  • How to share folder with only one person one same Mac

    Could someone please remind me how I share a folder with one person I share my Mac with but not the others (we all have different profiles on the same machine...) Thanks, Michael

  • Why has iTunes stopped recognising my iPod Classic?

    I have iTunes running on a 64-bit Windows 7 system. iTunes itself works fine, but when I hook up my iPod Classic 160gb, it doesn't recognise it. I get a message saying "The software required for communicating with the iPod is not installed correctly.

  • Acrobat 10 data1.cab corrupt

    Adobe Acrobat ver. 10.0.3 Windows 7 Enterprise (64-bit) OS English I have been trying to update to Acrobat 10.1, but the update keeps failing with the following message: Error 1334. The file 'ia32.ppi' cannot be installed because the file cannot be f

  • At least one sharee was not recognized by the server.  New invitations have not been sent.

    I'm running 10.8.4, server 2.2.1 with Calendar server turned on. I keep getting this error when trying to share a calendar from Calendar client: At least one sharee was not recognized by the server.  New invitations have not been sent. Any ideas? Tha

  • How to activate a set of BEx queries.

    Hello everybody! Is there any functionality to activate a set of BEx queries, e.g. something for queries like RSDG_IOBJ_ACTIVATE for info-objects?