(re)Enable iCalendar ability to execute AppleScript

Hi there fellow early adopters of ML (i'm talking to those who wait the final release and never installed ML DP).
I were using tons of AppleScript with Calendar ability to run script. Is there any way to recover this ability in Mountain Lion ?
Thanks,

I got the answer, and it was simpler than I thought. Here's a solution that works for me:
In Automator, create a Calendar Alarm
          Select Utilities from the library pane
          Select & drag Run AppleScript into the workflow area
          Copy/paste the AppleScript into the Run AppleScript box
          Save the newly created Calendar Alarm
Open Calendar.app, create a new event
          Select the Automator calendar as your reference calendar
          Select Open File for the alert, and select the file you created in Automator. By default, iCal is           the file that comes up when you select Open File. Change that to the name of the Automator           app you created. Select Other if the file name isn't shown.
I've attached screen shots, just in case the instructions are a bit vague. Let me know if this works for you.

Similar Messages

  • "execute applescript on output" woes....

    I have been integrating Compressor 3 with an automated system to convert media files to other formats. One of the great features of Compressor's settings is the "Execute Applescript on Output" option. This option works flawlessly when using Apple's included output settings, but it refuses to work with 3rd party compressor plugins. When using Compressor with any Episode Pro setting or Elgato's Turbo.264 codec's (through quicktime export options in compressor), you're able to select the option for running an applescript upon completion but it never launches an applescript.
    Anyone else experience this? Is there a logical explanation?

    All I can get out of the Automator interface is "Action Failed". The second action is a Pause [15] seconds, but I'm certain it never gets there. When the Automator action fails, the applescript does not produce any result. Spaces does not switch. But again, if I click the "run" button in Automator's Execute Applescript window, the applescript will produce results and switch to spaces 2.
    I originally got instructions here: http://discussions.apple.com/thread.jspa?threadID=1206636&tstart=134
    When I couldn't get it to work, I posted a thread here: http://discussions.apple.com/thread.jspa?threadID=1378261&tstart=30
    Which prompted me to add the OnRun wrapper, still have problems, and finally post on this forum instead of that one because is seems to be a very automator-specific problem.
    Thanks for any help,

  • Execute Applescript fails when run as part of Automator action

    I have an automator action whose first step is an Execute Applescript to drive a spaces switch:
    _Execute Applescript_
    <pre>on run
    tell application "System Events"
    keystroke "2" using {control down}
    end tell
    return true
    end run</pre>
    When I click the "Run" button in the upper left of the Execute Applescript window in Automator, the script runs and the screen switches spaces.
    But, if I run the whole Automator Action, it always fails on this first action. I think it's because I'm not handling input and parameters correctly, but I can't figure it out. If I add them ( On Run {input, parameters} ) then the Applescript itself does not work and also still does not work when I run the whole Automator action.
    Can someone help me get the syntax right on this?
    Thanks!

    All I can get out of the Automator interface is "Action Failed". The second action is a Pause [15] seconds, but I'm certain it never gets there. When the Automator action fails, the applescript does not produce any result. Spaces does not switch. But again, if I click the "run" button in Automator's Execute Applescript window, the applescript will produce results and switch to spaces 2.
    I originally got instructions here: http://discussions.apple.com/thread.jspa?threadID=1206636&tstart=134
    When I couldn't get it to work, I posted a thread here: http://discussions.apple.com/thread.jspa?threadID=1378261&tstart=30
    Which prompted me to add the OnRun wrapper, still have problems, and finally post on this forum instead of that one because is seems to be a very automator-specific problem.
    Thanks for any help,

  • Execute Applescript in Automator: fails when running Automator action

    I am trying to get a simple Automator action to switch spaces every so often. I'm following directions found on MacScripter. The Applescript runs and works on it's own, or when I run the applescript from inside the Execute Applescript window of Automator. But when I run the automator action, the Execute Applescript action fails. Here's the Applescript code I've entered into the Execute Applescript window:
    tell application "System Events"
    keystroke "2" using control down
    end tell
    Again, this runs and does what it should if I click the Run button in the Execute Applescript window of the automator action. It fails when I run the whole automator action. This Execute Applescript is the first action in the automator sequence.
    What am I missing?
    Thanks!

    Are you using the Run AppleScript action's run handler? The parameters are used to connect the action to Automator:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into an Automator 'Run AppleScript' action">
    on run {input, parameters}
    tell application "System Events"
    keystroke "2" using control down
    end tell
    return input
    end run
    </pre>

  • How can I enable the ability to create links when editing site text in BC?

    I am about to launch my first BC site for a client. I built the site using Muse. The client needs to update text and pics on their own using BC, which is fine, but when editing text, they are unable to create a link to another page. How can I enable the ability to create links when editing site text in BC? I can apparently do this in this post, but I don't see a way to do this for their site.

    Grid control should be used if you have multiple dbs to manage.
    But if you still want to install dbconsole, you can use dbca as already mentioned. it's much easier to do that using dbca.
    With the manual method, you create the repository via emca -repos create.
    Then you configure it using emca -config dbcontrol db. This will ask for sys passwords, ports setting etc...

  • Execute AppleScript from Director

    Hello All,
    How execute AppleScript from Director?
    Can send parameter?
    Thanks.

    > How execute AppleScript from Director?
    > Can send parameter?
    There is zScript: <
    http://www.zeusprod.com/products/zscript.html>
    Or maybe Valentin Schmidt's free Shell xtra will help:
    <
    http://dasdeck.de/staff/valentin/xtras/shell/>

  • How can I use a Java program to write an executable Applescript

    I'm using a PC with Windows XP. I'm a private developer. I've written a project in Java and wish to deploy it to other people using email. I've written an Install program (the Main-Class) and successfully packed this in a jar file with the project class files and some data files all as described in the deployment trail in the Java Tutorials. A recipient with a Mac with OS X downloads the jar file and runs it to install the project class files and some data files. The install program then writes an Applescript file (Vocab.scpt shown below) on the Desktop to make starting my downloaded program easier but it doesn't seem to work and I think it may be because the script file is not "executable". Could this be the case? If so, how could I change my install program to make the script file executable or alternatively use some other system to start the downloaded program?
    Vocab.scpt:-
    # Script to start: Vocab Version: 1.0.0
    do shell script "cd /Applications/Vocab; Java Vocab"
    Many thanks for your interest. Unfortunately I don't have a Mac to experiment with this problem and although I have spent some days on and off trying to find an answer in the mass of information available on Apple's website I can only find small clues here and there to answer my problem (which I would have thought was quite a common one). In Windows a batch file (eg. Vocab.bat) is automatically executable.

    I didn't expect you to have your customer run the command. I would expect you to create the executable and install it. However, there wouldn't be any difference in what you are creating and the .jar file. Either way it is a faceless icon. For that matter, it is no different than a batch file on Windows. I'm not sure what they wouldn't understand with, "copy the Vocab.jar file to wherever you want and double-click it to run the program." In addition, you probably ought to point out that Java is not installed on Mac OS X Lion (10.7.x) and when they double-click the jar file (or whatever you send them), the system will ask if they want to install Java.
    What you really need to do is package up the app inside a Mac application package and provide the user with the application on a .dmg (disk image). Take a look here: http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Jar_Bundle r/Introduction/Introduction.html#//apple_ref/doc/uid/TP40000884
    I also found this which uses ANT to create the bundle: http://informagen.com/JarBundler/

  • How do I execute AppleScript when I open my computer?

    I would like to have several actions execute when I open my macbook air. I am just learning AppleScript and I would like to do this in AppleScript.

    SleepWatcher

  • Mail rules have stopped executing applescripts

    I have 3 mail rules that run different applescripts to process mail into other apps (omnifocus and yojimbo). Sometime in the last few days, these rules stopped processing the apple scripts. I know the issue is not the scripts themselves, because I can execute them manually just fine.
    I'm not sure why they have stopped working, but there are two changes that have happened on my computer that I think might have created the issue:
    1) I installed the Safari 4.0 beta
    2) I began syncing mail rules with another machine. (This created duplicate rules, but I have deleted them.)
    Anyone have any ideas what might be causing my issue?

    you can submit a bug report here:
    https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/wa/signIn
    You will need ADC membership to do so. it's free and you can use your existing apple id to get it.

  • Execute applescript from javascript

    I am trying to execute an AppleScript .app from my webpage. Is it possible?

    I am trying to execute an AppleScript .app from my webpage. Is it possible?
    I suspect not. Javascript is supposed to prevent the program from messing with you local environment.  Could be some control to allow it.  I wouldn't want some random web page invoking an Applescript that messes with my file system.
    You need activex on a windows machine. Microsoft is happy to like you download any random program and run it on your Windows box.  I do not run Windows.

  • Enabling the ability to uncheck QT file associations in Default Programs

    I have Windows 7 here, and it comes with this nice little utility that lets you set the default programs for various file types (Control Panel\All Control Panel Items\Default Programs\Set Default Programs\Set Program Associations). When I select Quicktime, there are various boxes that I can check, but there are also various boxes that are pre-checked. I would like to uncheck them, but they are greyed out. How can I uncheck them?
    I hope Apple engineers understand the absurdity of having a specific tool for setting file type associations, and them making that tool unable to set file type associations. It sort of defeats the purpose doesn't it?
    For the record, I am administrator and UAC is disabled.

    File associations are a mess right now. Many programs (Opera included) handle them their own way. There's a project underway to handle associations in a standard way (see MIME actions, shared MIME info, desktop entries, all at freedesktop.org), but not all software uses it; KDE is a notable holdout (3 at least, not sure about 4).
    Note that that first spec link, MIME actions, is currently "in the requirements-gathering / early-planning stages." That means there is no spec for that. As I said, a mess.
    Most likely, Opera and Thunderbird detected you were running KDE and special-cased their association-finder to ask KDE instead. Now that you aren't, they're falling back to their normal behavior: use the first .desktop file to claim the MIME type. As I recall, both applications offer ways to specify associations in their preferences; you might just want to stick to that for now. Or use a desktop environment.
    The kernel-level MIME support is designed to allow execution of strange files using interpreters. For example, you could directly execute Windows applications (as in "./notepad.exe") by setting the kernel to "interpret" application/exe files using wine. No applications use it for opening files.

  • What are the steps necessary to allow a single user login the ability to execute a single stored procedure and nothing else.

    Hello,
    I have a request to create a user login and restrict that user to only be able to execute a single stored procedure.
    Is this possible using only TSQL commands? 
    Am i on the right track here?
    USE MyDatabase
    GO
    CREATE LOGIN [mylogin] DEFAULT_DATABASE = [MyDatabase], CHECK_POLICY = OFF, CHECK_EXPIRATION = OFF
    GO
    CREATE ROLE exec_single_proc_role
    GO
    exec sp_addrolemember 'exec_single_proc_role', 'mylogin'
    GO
    CREATE SCHEMA [restricted] AUTHORIZATION mylogin
    GO
    GRANT EXECUTE ON SCHEMA::restricted TO exec_single_proc_role
    GO

    Thanks for the reply.
    This particular user should need to be able to Alter, Execute, and View the stored procedure as well.
    Here is what i ended up with:  Any improvement are appreciated.  Thanks
    USE MyDatabase
    GO
    --DROP SCHEMA
    IF EXISTS (SELECT * FROM sys.schemas WHERE name = N'restricted')
    DROP SCHEMA [restricted]
    GO
    --DROP SERVER WIDE LOGIN
    IF EXISTS (SELECT * FROM sys.server_principals WHERE name = N'MyUserLogin')
    DROP LOGIN [MyUserLogin]
    GO
    --CREATE SERVER WIDE LOGIN
    CREATE LOGIN [MyUserLogin] WITH PASSWORD = 0x0100F1CF6792E602EF40DFF55983FDE81A9 HASHED, SID = 0xC33B04EECE59DC4C95BE66ED9B15D13D, DEFAULT_DATABASE = [MyDatabase], CHECK_POLICY = OFF, CHECK_EXPIRATION = OFF
    GO
    --DROP ROLE
    DECLARE @RoleName sysname
    set @RoleName = N'exec_single_proc_role'
    IF EXISTS (SELECT * FROM sys.database_principals WHERE name = @RoleName AND type = 'R')
    Begin
    DECLARE @RoleMemberName sysname
    DECLARE Member_Cursor CURSOR FOR
    select [name]
    from sys.database_principals
    where principal_id in (
    select member_principal_id
    from sys.database_role_members
    where role_principal_id in (
    select principal_id
    FROM sys.database_principals where [name] = @RoleName AND type = 'R' ))
    OPEN Member_Cursor;
    FETCH NEXT FROM Member_Cursor
    into @RoleMemberName
    WHILE @@FETCH_STATUS = 0
    BEGIN
    exec sp_droprolemember @rolename=@RoleName, @membername= @RoleMemberName
    FETCH NEXT FROM Member_Cursor
    into @RoleMemberName
    END;
    CLOSE Member_Cursor;
    DEALLOCATE Member_Cursor;
    End
    IF EXISTS (SELECT * FROM sys.database_principals WHERE name = N'exec_single_proc_role' AND type = 'R')
    DROP ROLE [exec_single_proc_role]
    GO
    --DROP USER
    IF EXISTS (SELECT * FROM sys.database_principals WHERE name = N'MyUserLogin')
    DROP USER [MyUserLogin]
    GO
    --CREATE USER AND ASSIGN DEFAULT SCHEMA
    CREATE USER [MyUserLogin] FOR LOGIN [MyUserLogin] WITH DEFAULT_SCHEMA=[restricted]
    GO
    --CREATE SCHEMA
    CREATE SCHEMA [restricted] AUTHORIZATION [MyUserLogin]
    GO
    --CREATE ROLE
    CREATE ROLE [exec_single_proc_role] AUTHORIZATION [MyUserLogin]
    GO
    --ADD ROLE
    EXEC sp_addrolemember 'exec_single_proc_role', [MyUserLogin]
    GO
    GRANT EXECUTE ON SCHEMA::[restricted] TO [exec_single_proc_role]
    GO
    GRANT EXECUTE ON OBJECT::[dbo].[MyStoredProcedure] TO [MyUserLogin]
    GO

  • Executing AppleScript on Output

    Hey all,
    I'm trying to make Compressor run an AppleScript after the output is done. For some reason, though, it won't do it. Has anyone successfuly done this? I've tried with a couple different scripts, but the logs don't even show it trying to start. I can post my log file if that would help. Thanks!
    jared

    Yes, you can choose any nickname (nick) that you want. You can register your nick with NickServ if you want, but it's not necessary. NickServ just helps to 'reserve' your name for you, but it's not like you have an account or a profile somewhere.
    Your user name is also arbitrarily decided by you. This is because you can change your nick at any time, so you have the option of adding a user name behind the nick so people can see it's you (if they decide to look at your username).
    As with nick and user name, your real name can be arbitrarily chosen by you, and both user name and real name are optional. You don't have to enter either one if you don't want to.
    SO BASICALLY.... just enter a nick and connect! You'll join the chat channel (even if there are no other users; the channel is re-created when you join). There may be several other users, or there may be no one. With IRC, you just kind of leave it open and connected in the background until you need it (or until someone else starts talking and you join in!).
    As for saying hello and not getting an answer, that's fairly standard for IRC. Like I said, people just leave it open in the background, so you won't always get a conversation started right away. It may take a while for someone to see that you said something and then respond. Generally, I've noticed any new messages to IRC are answered within 20 minutes (and then, since people are paying attention, a normal conversation starts). Not ALWAYS 20 minutes (usually a lot faster), but always within less than 20 minutes. (I saw you said "Hello" after 6 minutes and I responded, whereas here I'm FINALLY responding after 26 hours—so, IRC may have a wait sometimes, but it's obviously faster than online forums).
    So, yes, there's a short wait involved. That's why I'm hoping to get more people in the channel. More people will hopefully mean someone will respond to you faster.

  • "Error executing AppleScript in Display Set"

    Keep getting this message when opening a new window. I am running 10.8.4 on a an Intel iMac. Any ideas on how to fix?

    It sounds like you have a Folder Action set on your home directory, and that Action has an error.
    The big question is whether you know/want/expect there to be a Folder Action - I'd suspect that if you put it there you would know how to find/fix the problem.
    If you want the Folder Action you'll need to edit the script to fix the error. If you don't want it, Ctrl-click on your home directory in the Finder and choose Folder Actions Setup... from the Services menu.

  • Mountain Lion Calendar won't launch my Applescript

    I've just upgraded to Mountain Lion and find that my previously automatically launched Applescripts, open but do not run.
    In 10.6, to run scripts unattended, I just created an Ical event with an alert that ran the script.
    This event was saved in the upgrade. My script still works, but now Calendar just *opens* the script. It doesn't run it.
    So where are you supposed to schedule things like this in Mountain Lion?
    For those who care - what the script does is copy text from a Safari page and save it to a text file.
    I need it to run every half hour.
    It doesn't run anymore, unless I am there to click the "run" button when calendar opens the script.

    Problem solved with thread titled (re)Enable iCalendar ability to execute AppleScript

Maybe you are looking for

  • Unable to Deploy war file in 6.1/sp1/solaris

    We are using wl 6.1/sp1 solaris. What I can gather is when the server trying to parse the dtd for weblogic.xml..for some reason it does not find the local copy of th e dtd? any clues how I can fix this. Any help is appreciated. java.net.ConnectExcept

  • Problem with SCs that created before the Name Server was configured

    Hello, I have created an SC and developed it. When I created it, the Name Server wasn't configured and because of that, when I created new DC for this SC I needed to write the vendor manually. Lets assume I wrote example.org. Sometime after I did con

  • Update new iPod 5.0 to new iOS 7

    Just got replacement iPod 5th gen. When I try to back up it says the iOS's are not compatible. How do I up date to new iOS so I can restore?

  • Mrp view 2

    Hi guys, I am working with kmat material and while doing material master data in MRP view 2 procurement are showing E grayed one ie in display mode but i don't want that so plz suggest me how to remove that display mode ie grayed one thanks jaiswin.

  • My MacBook Pro Restart Because of a Problem every 5 - 20 min

    i hope some one help me on this problem i can't use my laptop always restarting and here you are some details of my laptop : Macbook Pro Model : A1286 - Core i5 2.4 - 4GB Ram - Nvidia 330M - Mountain Lion for now [ Also happened on Mavericks ] apps w