Ical print scripting

Hi, i was wondering if anyone knows how to write a script to make ical print out my scedual for the week. I have looked up scrpts for prtining and saving and all that stuff and i can get them to run both as applications and scripts in new events in my calender but i do not know how to make it print out the scedual. I assume that i would have to first save the calender and then print it so im lost. Thanks for the help -mike
macbook pro   Mac OS X (10.4.8)  

It would not, I think, be an easy task. There is no way, AFAIK, to ask iCal to save the equivalent of the week display as a separate file. It would be possible to do it with GUI scripting, but this is not easy and generally not considered reliable.
AK
[Edit]
You could take a look here - John Maisey has posted a script to print a daily schedule automatically.

Similar Messages

  • Why does ical print out starting tuesday?

    Why does ical print out staring the week on tuesday?
    Maybe the week starts one day later for the Yosemite dev team, but certainly not in my neck of the woods.
    The actual print out also looks nothing like the new matt and  'flat' graphic style of Yosemite.
    I suggest you start on monday next week and sort these issues out.
    Sunny

    For many people that is the correct option. If you think it should be different, tell Apple, as they aren't listening here.

  • ICal prints times in front of event entries, I don't want these times entered. How to remove them?

    iCal prints times in front of event entries, I don't want these times entered. How to remove them?

    Go to your Flagged Photos Smrt Album on the Left.
    Command - a will select All
    Then File -> New -> Album
    Regards
    TD

  • Check printing script debuggin problem

    Hi
    i am working on a check printing script. i need to adjust the layout of few things in this layout.
    in the debuggin mode i am getting the short dump stating vendor number = xxxxxxxxxxxx (invalid).
    can anyone tel me the windows for date,account payee,amount in words and amount in figures or atleast the fields related to them r tell me where i have to correct my script to proceed in debuggin mode.
    thanks in advance

    Hi,
    CHECKSPL  -> for amount in words,
    CHECK -> other fields ( date, amount )
    CHECKADD -> Payee
    other open form se71 -> display -> go to UTILITIES menu -> select FORM INFO. option
    There you find with general Find( CTRl + F ).
    Reward if helpful.
    Bye

  • Duplex printing script

    Hi All,
      I have requirement for a customer Acct statement form, wherein I have to print different footers on alternate pages.. say like.
    it's a duplex printing script.
    for each customer statements, the first page should have a footer "Contd on reverse" and the second should have "contd.."
    and again the third "Contd on reverse".
    I.e for even pages it's "Contd on reverse"
    and for odd pages it's "contd..".
    I suppose we can manage using the PAGE variable.
    Can you provide some help on how to go about this logic.

    Hi,
    Based on the page number try to print the footer. Try to define the text elements in the same window. In driver program, try to keep if condition based on page number then print the correspoding text elements.
    or
    In driver program-> calling Text elemnts-> keep this code in Text element in script.
    consider the MOD of page No by 2.
    If it is Zero
    print that 'Conttd on reverse'.
    else.
    print 'Contd'.
    endif.
    Thanks & Regards,
    Chandralekha.

  • Find check print script program in nace

    Hi experts,
    check printing script program ( TCODE  IS  FCH7 ).
    how to find in the NACE  this check print script program.
    please help me in this

    Hi,
    Hi,
    FI documents are not maintained in NACE. In Nace if you can see there are several applications but nothing is for FI or CO.
    Print program RFFOUS* to print cheque.
    Thanks,
    Abhijit

  • Help! 'Package for Print' Script

    Hi all,
    I have a specific 'Package For Print' script, that needs a small modification, and and I was hoping someone could help me.
    Essentially, I need to OMIT 'Include PDF' option when packaging, since this makes things a bit wonky on my script (see below).
    Let me know if you need to see the script, and I'll post it.
    Thank you.

    Here you go, and thank you. I know notes are also included in it. Sorry about this.
    //Package the active document and setup the dockets folder structure.
    //The active document shouldn't have been saved (has no name), so provide a name
    //taken from the first and only link.  After creating the dockets folder structure,
    //close and delete the original file and open the file in the docket's originals
    //folder.
    #target InDesign
    //Constants
    const PROOF_PREFIX = 'Proof_';
    const OUTPUT_SUFFIX = ' Folder';
    const ORIGINALS_FOLDER = 'Originals';
    const PRINT_FOLDER = 'Print';
    const DIGITAL_PROOF_FOLDER = 'Digital Proof';
    const CLIENT_FOLDER = 'Client Provided Files';
    const DEFAULT_MAC_DOCKETS = '/Users/parham/Desktop';
    const PDF_PROFILE = 'Linx_Proof'
    function Err() {}
    //Use a more user-friendly version than throwing an error.
    Err.FatalError = function (msg) {
      alert(msg, 'Fatal Error', true);
      exit();
    function makeShowUI(runtime) {
      var doc = runtime.doc;
      var window = (function () {
      var windowDef = "Window {\
      type: 'dialog', \
      properties: { \
      resizeable: false, \
      closeButton: true, \
      maximizeButton: false, \
      minimizeButton: false \
      text: 'Dockets Package', \
      orientation: 'column', \
      var w = new Window(windowDef);
      //Folder name
      w.add("StaticText { text:'New Folder Name', alignment: 'left' }");
      var defaultName = doc.name;
      if (defaultName.slice(-5) == '.indd') {
      var origlength = defaultName.length;
      defaultName = defaultName.substr(0, origlength - 5);
      w.folderText = w.add("EditText { alignment: 'left', characters: 30, justify: 'left', " +
      "text:'" + defaultName + OUTPUT_SUFFIX + "'}");
      //Destination dir
      w.add("StaticText { text:'Save To', alignment: 'left' }");
      var dirGroup = w.add("Group { orientation: 'row', alignment: 'fill' }");
      w.dirText = dirGroup.add("EditText { characters: 30, justify: 'left', " +
      "text:'" + DEFAULT_MAC_DOCKETS + "'}");
      w.dirBrowseBtn = dirGroup.add("Button { text: 'Browse...' }");
      w.dirBrowseBtn.textBox = w.dirText;
      //Package Options
      w.options = w.add("Panel { orientation: 'column', alignment: 'fill', \
      text: 'Package Options', alignChildren: 'left'}");
      w.options.fonts = w.options.add("Checkbox { text: 'Copy Fonts' }");
      w.options.links = w.options.add("Checkbox { text: 'Copy Linked Graphics' }");
      w.options.profiles = w.options.add("Checkbox { text: 'Copy Color Profiles' }");
      w.options.update = w.options.add("Checkbox { text: 'Update Graphic Links In Package' }");
      w.options.hiddenContent = w.options.add("Checkbox { text: 'Include Fonts and Links From Hidden and Non-Printing Content' }");
      w.options.ignore = w.options.add("Checkbox { text: 'Ignore Preflight Errors' }");
      w.options.report = w.options.add("Checkbox { text: 'Create Report' }");
      w.options.fonts.value = true;
      w.options.links.value = true;
      w.options.profiles.value = true;
      w.options.update.value = true;
      w.options.hiddenContent.value = true;
      w.options.ignore.value = true; //Parham's request for true
      w.options.report.value = false; //Saeed's request for false (no instructions)
      //Digital Proof
      w.proof = w.add("Panel { orientation: 'column', alignment: 'fill', \
      text: 'Digital Proof', alignChildren: 'left'}");
      w.proof.make = w.proof.add("Checkbox { text: 'Make PDF Proof' }");
      w.proof.viewAfter = w.proof.add("Checkbox { text: 'View PDF' }");
      w.proof.make.value = false;
      w.proof.viewAfter.value = false;
      //OK / Cancel
      var buttonDef = "Group { orientation: 'row', alignment: 'right', alignChildren: 'right' }";
      w.bg = w.add(buttonDef);
      var okDef = "Button { text: 'OK', alignment: 'right' }";
      var cancelDef = "Button { text: 'Cancel', alignment: ['right', 'center'] }";
      w.okBtn = w.bg.add(okDef);
      w.cancelBtn = w.bg.add(cancelDef);
      return w;
      runtime.window = window;
      window.dirBrowseBtn.onClick = (function () {
      var result = Folder.selectDialog('Choose destination directory');
      if (null !== result) {
      //Replace string with selected path
      this.textBox.text = result.fullName;
      return window.show();
    function deleteFolder(folder) {
      if (!folder.exists) {
      return;
      var children = folder.getFiles();
      for (var i = 0, im = children.length; i < im; i++) {
      if (children[i] instanceof Folder) {
      deleteFolder(children[i]);
      } else {
      children[i].remove();
      folder.remove();
    //Main path
    try {
      var a = app.activeDocument;
    } catch (e) {
      Err.FatalError("No document open");
    var runtime = {};
    var doc = app.activeDocument;
    runtime.doc = doc;
    if (doc.saved) {
      //Document has already been saved (already has a name), so stop.
      Err.FatalError("Document has already been saved");
    //Ensure at least one link, since multipaged PDFs end up as more than 1 link.
    if (doc.links.length < 1) {
      Err.FatalError("Document has " + doc.links.length + " links.");
    //Save the existing file in a temporary place, same dir as first link.
    //Take the name from the first link
    var link = doc.links.firstItem();
    var defaultName = link.name;
    if (defaultName.slice(-4) == '.pdf') {
      var origlength = defaultName.length;
      defaultName = defaultName.substr(0, origlength - 4);
    } else {
      //Placed item is not a pdf, as per Parham's request, don't warn about it.
      //Just take the filename best guess and go with it.
    // if (confirm('Linked item is not a PDF.  Package anyways?',
    // true, 'Package non-PDF')) {
      //break on the last '.'
      var lastIndex = defaultName.lastIndexOf('.');
      if (lastIndex > -1) {
      defaultName = defaultName.substr(0, lastIndex);
      } else {
      defaultName = defaultName;
    // } else {
    // alert('Did not package.');
    // exit();
    //filePath should be a File, but is actually a string, so make a file.
    var linkFile = new File(link.filePath);
    var origFile = new File(linkFile.path + '/' + defaultName + '.indd');
    if (origFile.exists) {
      //Folder already exists, get user to confirm
      if (confirm("File " + defaultName + '.indd already exists.  Replace?',
      true, 'Replace File')) {
      //Erase the temp file
      origFile.remove();
      } else {
      alert('Did not overwrite existing files, did not package.');
      exit();
    doc.save(origFile);
    if (2 == makeShowUI(runtime)) {
      //User pressed cancel
      exit();
    //Main code, do the packaging and make the directories.
    //But first check for existing folder.
    var folderName = runtime.window.folderText.text;
    var destinationPath = runtime.window.dirText.text;
    if (destinationPath.slice(-1) == '/') {
      var newFolderPath = destinationPath + folderName;
    } else {
      var newFolderPath = destinationPath + '/' + folderName;
    var outputRoot = new Folder(newFolderPath);
    if (outputRoot instanceof Folder && outputRoot.exists) {
      //Folder already exists, get user to confirm
      if (confirm('Dockets folder ' + folderName + ' already exists.  Replace?',
      true, 'Replace Folder')) {
      //Erase the destination directory
      //Get all contained files + folders, then delete them.
      deleteFolder(outputRoot);
      } else {
      alert('Did not overwrite existing files.');
      exit();
    } else if (outputRoot instanceof File) {
      //Destination folder exists as a file, fail.
      Err.FatalError('File named ' + folderName + ' already exists, cannot make folder.');
    //Destination doesn't exist, create it.
    if (!outputRoot.create()) {
      Err.FatalError('Error creating folder ' + folderName);
    //We have an empty directory, now do the packaging and everything else.
    var printFolder = new Folder(newFolderPath);
    printFolder.changePath(PRINT_FOLDER);
    if (!printFolder.create()) {
      Err.FatalError('Error creating Print folder.');
    var digitalProofFolder = new Folder(newFolderPath);
    digitalProofFolder.changePath(DIGITAL_PROOF_FOLDER);
    if (!digitalProofFolder.create()) {
      Err.FatalError('Error creating Digital Proof folder.');
    var clientFolder = new Folder(newFolderPath);
    clientFolder.changePath(CLIENT_FOLDER);
    if (!clientFolder.create()) {
      Err.FatalError('Error creating Client folder.');
    var originalsFolder = new Folder(newFolderPath);
    originalsFolder.changePath(ORIGINALS_FOLDER);
    if (!originalsFolder.create()) {
      Err.FatalError('Error creating Originals folder.');
    //Do the package
    var f = runtime.window.options;
    if (doc.packageForPrint(originalsFolder, f.fonts.value, f.links.value, f.profiles.value, f.update.value, f.hiddenContent.value, f.ignore.value, f.report.value, false, true)) {
    } else {
      Err.FatalError('Failed to package.');
    //Do the PDF proof
    if (runtime.window.proof.make.value) {
      var proofname = PROOF_PREFIX + doc.name;
      if (proofname.slice(-5) == '.indd') {
      var origlength = proofname.length;
      proofname = proofname.substr(0, origlength - 5);
      proofname = proofname + '.pdf';
      var proofFile = new File(digitalProofFolder.fullName + '/' + proofname);
      if (proofFile.exists) {
      Err.FatalError('Digital proof already exists.');
      } else {
      var exportProfile = app.pdfExportPresets.itemByName(PDF_PROFILE);
      //We get an object even if the profile doesn't exist, have to check isValid
      if (!exportProfile.isValid) {
      Err.FatalError('PDF profile ' + PDF_PROFILE + " doesn't exist, digital proof not created.");
      //Explicitly set to export all pages.
      app.pdfExportPreferences.pageRange = PageRange.ALL_PAGES;
      //Set view preference
      app.pdfExportPreferences.viewPDF = runtime.window.proof.viewAfter.value;
      doc.exportFile(ExportFormat.PDF_TYPE, proofFile, false, exportProfile);
    //Open the Originals folder .indd, close the current file and delete it.
    var newFile = new File(originalsFolder.fullName + '/' + doc.name);
    if (!app.open(newFile)) {
      Err.FatalError("Failed to open packaged .indd");
    doc.close();
    origFile.remove();

  • Ical - Printing the Colour Bubbles/Blocks

    HI ya, 
    How does one print Ical so that it prints in full the bubble block colours and not just a thin bar line to the left???
    (I can't even get a screen shot because you have the scroll thru)
    Cheers
    Mistique

    jjraabe,
    If you go to iCal>Print...>View, you can select "List." Would that be what you are looking for, or do you want to get rid of the calendar grid lines?
    If you want to get rid of the calendar grid lines, I do not think that is possible.
    ;~)

  • ICal: print "year" overview

    Dear Forum,
    in iCal, one can select "week" ... "year" as a view.
    I would like to print the one year overview, but for whatever reason this is not possible.
    Any idea for a workaroud? A script? Or a sweet little App?
    Any help appreciated.
    Cheers
    Martin

    It would not, I think, be an easy task. There is no way, AFAIK, to ask iCal to save the equivalent of the week display as a separate file. It would be possible to do it with GUI scripting, but this is not easy and generally not considered reliable.
    AK
    [Edit]
    You could take a look here - John Maisey has posted a script to print a daily schedule automatically.

  • ICal Print List - Why are to-dos randomly sorted?

    When printing from iCal in the list view, my To-Do List is NEVER sorted the way I sorted it in the main iCal window (whether by Calendar, Priority, or Manually). Instead it's just sorted randomly, which is very unorganized.
    Does anyone know why this is, or what can be done to fix it?

    It sounds like from your description that you're entering a date as a string in the todo description. Ideally you should be entering the date as the due date. This will help the sort order both in iCal and when printing. When you decide to print the To Do List, make sure View is set to List. Only check To Dos. In the time range, select the range you want to see. Anything without a due date will be printed under the heading To Dos without Due Date.

  • Why doesn't iCal print "Lists" in order, still, after how many different operating systems, and now with Lion?

    I can't believe iCal List printing is still unsorted - HOW HARD CAN THIS BE TO FIX APPLE ?!!!!?

    (bump)

  • Why won't iCal print all my Calendars when I can see them on the screen?

    I have eight Calendars set up in iCal. When I select 'Print' a new screen appears and, once again, I can see all eight Calendars. The word 'Print' is at the top of this screen. I press the Continue box and a second Print screen appears. This time all but two of my Calendars have disappeared (confirmed if I open in Preview). And of course it's only this version that prints. What happened between the first Print screen and the second, and how can I manage to print all my Calendars?

    Hi st louis,
    Are the tickets you downloaded from Ticketmaster PDFs? If so, have you opened them in Acrobat or Reader to print them? I haven't ever been required to enter a password to print an e-ticket from Ticketmaster, but they may have changed their policy. Did they provide you with a password when you purchased your tickets--perhaps in the confirmation email?
    Best,
    Sara

  • How can iCal print onto A3?

    I used to be able to print a month of iCal onto A3 to post my calander on my door. Since upgrading to 2.0.3, this is not an option. Is there a way round this?

    Hi Colinp5322,
    I'm guessing you are printing from you computer.
    Would like you to follow the step below.
    Return to the photo you were trying to print when the issue occurred.
    Click File , and then click Print . The Print window opens.
    Click the button that opens the Properties dialog box. Depending on the software program, the button might be Properties , Options , Printer Setup , Printer , or Preferences .
    Click the tab that provides paper type and size settings. The tab might be Features or Paper/Quality .
    From the Size is drop-down list, select the paper size that matches your needs.
    From the Source is drop-down list, select  Tray if it is not already selected.
    From the Type is drop-down list, select the paper type that matches the paper in the tray.
    Click OK , and then click OK again to print the photo.
    Let us know if this helped.
    Thanks
    Josh.C
    Click on the BLUE KUDOS button on the left to say "Thanks"
    Although I am an HP employee, I am speaking for myself and not for HP.

  • Can iCal print monthly calendar with a 5 day week?

    Hi,
    I can get iCal to display a five day week onscreen easily enough, but I would also like to print a monthly calendar showing only the traditional five-day work week. I havent' been able to do that yet. Is there a way to do it?
    Patrick

    All I know is that sometimes the paths don't work right--especially if you're using a swc and you use the "+" button to add a path to it instead of the button that looks like a swc icon. It stands to reason that if you change the path, you could fix the problem, especially if moving the project meant you had to set that up again.

  • Changing iCal Print Layout

    Hi
    When I print a calandar month, the month and year are top left on the paper so that when I hole-punch the page to stick in my filofax, the month has got a big hole in the middle.
    Is there a way of changing the print layout so that I can move the month a bit towards the centre ?
    Any suggestions very welcome. I hate it looking untidy !!

    I've been battling the lack of a "Page Setup..." menu in iCal for several hours, even after reading the fix above. Some of my conclusions and a tip:
    1. It seems that iCal 'gathers' the paper/printer info when it starts up. It is therefore a waste of time to set these dimensions while iCal is still running/open.
    2. Any app that allows access to the "Page Setup..." menu can be used to create/modify a custom/existing choice.
    3. It may be better to set up a 'custom' setting using "Any Printer" rather than any specific printer you may have.
    Perhaps the most important fact I discovered is that it is more important to set the paper dimensions than the actual margin numbers! iCal seems to prefer using a minimum margin setting regardless of what is defined in any "Page Setup..." item. But it will recognize and respect a slightly smaller page size and print within it. For example, my final success came when I re-defined the normal 8.5 x 11 inch paper as 8.25 x 10.75 inches! Just be sure to crate this as a custom, named setting so you can find and select it in iCal.
    BTW, I have not attempted other 'standard' paper sizes, just the 'full-size' version.
    Anyone have an idea why iCal ignore the GUI standards?! Or is simply another attempt at 'integrating' all apps; like using Safari to tell the OS to use another browser? What happened to Apple's 'user friendliness' mantra?

Maybe you are looking for

  • LSO Error in Opening BSP for course bookings from portal

    Dear Friends, After configuring the R/3 system for LSO alongwith TEM, when we are opening the e-Learning pages in portal. The page where the participant can book for the course is not displayed. Following error is getting displayed on the page. SAP N

  • JPA, how to write a service to persist objects in a 1-to-many relationship

    i am using JPA for data persistence. i have two objects that are involved in a one-to-many relationship. for example, i have an object, Company, and Company can have one or more, Employee. i then define a service called, CompanyDao, which has the usu

  • Popup by clicking on link on the field group level

    Hi there, I have a requirement to raise a popup once we click on a hyperlink (a field group). Is this technically possible to achieve this? Thanks, Josh

  • Old timer

    I was certified a long time ago. What exactly do I have to do to get on certview? I may have tried to upgrade a few years ago but gave up.

  • Solution for privilage card  in point of sales

    hi experts, we have a scenario that, we have contract with charity institute for particuler amount (xxxxxx)  as per contract we have to distribute this money to 132 (privailege customer) family through our garment outlet(point of sales). 1. how we sh