Using Time.expression in a custom library

Hello All,
I am trying to write a piece of code in a custom library. Upon trying to save the code, it tries to compile and kicks out a message "...cannot resolve symbol symbol : class Time location..."
Does any one know which class to import in order to use the Time function?
I have already imported  com.redwood.scheduler.api.date.*;
Thanks
Daniel

Hello,
The code in a library works slightly different then the expressions.
You can use:
  DateTimeZone myDate = DateTimeZone.expressionNow("add 1 day");
regards Gerben
Edited by: G. Blom on Feb 24, 2011 12:49 PM

Similar Messages

  • Using Time Machine to Restore iTunes Library

    Has anyone had success using Time Machine to restore their iTunes library? When I try, I get a message saying that my library is "damaged".
    I have tried restoring the iTunes application in addition the iTunes folder in the users/Music folder. Same result. All of the music is there as well as the playlists; however, iTunes thinks it is damaged and creates a new, empty, library.
    I know it would be possible to build a new library from the music files but I do not want to have to rebuild the playlists as they are very, very extensive.
    Can anyone help? Please??

    I'm having the same problem! I moved from a 2007 20" iMac to a new 15" MacBook Pro, so I bought a new external HD, copied my Time Machine backups to the new HD, and tried to restore my iTunes library from TM to my new MBP. iTunes claims my library is damaged and creates a new library file. My 80 gigabytes of media are clearly there, but they will not show in iTunes and won't play in QuickTime either. Did you happen to get this issue resolved?? It's very stressful. I have essentially lost all the music I have collected over many years.

  • Using Time Capsule to host iTunes library for use by multiple user accounts

    I have recently purchased my first Time Capsule (2TB, delivered December 2010). I have also recently begun to share a single iTunes library with my partner (ie. we have separate user accounts, but following the instructions found at http://steve-on-sakai.blogspot.com/2009/07/really-sharing-your-itunes-library.ht ml, both of our iTunes apps open to the same library).
    I think i've done everything correctly, as everything will work as expected ... once we are able to force our way into iTunes.
    My knowledge gap seems to be with my understanding of how Time Capsule and its "Data" folder work.
    I've moved our entire iTunes folder into the Data folder on the Time Capsule, and i understand that only one of our user accounts can have iTunes running (that one must quit iTunes before the other user will be able to launch iTunes).
    What happens sometimes, seemingly dependant on who has signed into their account first, or who has launched and quit iTunes first, is that iTunes will not launch; we are required to choose an iTunes library. This is easily enough done, except when the Data folder is unavailable to that particular user at that time (indicated by the "do not enter" symbol). I've noticed that disconnecting and re-connecting to the Time Capsule will get around this.
    I stumble through these steps whenever possible, but my partner is nervous about having to do all of this when i'm not available.
    Naturally, what i would like is for either of us, at any time, to be able to simply launch iTunes without issue.
    iTunes preferences on each accounts show that our iTunes Media folder location is "/Volumes/Data/iTunes/iTunes Music", and both checkboxes are checked for keeping the iTunes Media folder organized and copying files to the iTunes Media folder.
    I suspect that my problem might stem from the fact that i initially followed the instructions given at the above steve-on-sakai blog post, using our Shared folder. Since then, i have moved everything to the Time Capsule, and i wonder if the Terminal command in Step 7 should be repeated for the Data folder ... but i'm not "literate" enough to know what i'm doing there (but wise enough to know i shouldn't mess around with Terminal if i don't know what i'm doing).
    I have spent hours browsing the discussions here and elsewhere, and i can't seem to find anything that specifically addresses my issues. I have learned a lot from my searches, but i felt that posting a new question was my best option. I hope that i haven't duplicated anything.
    I hope that someone will be able to fine tune my efforts so that everything will "just work".
    Thank you so much, in advance...
    Bill.

    Jaap74 wrote:
    Two things that are not clear
    - I think it is not possible to have iTunes running at the same time on two Macs in the discribed setting.
    - I think over a wireless connection, it will reduce speed.
    Anyone with experience?
    I think what you mean is that it's not possible for two Macs to access the same iTunes library (ie. the same collection of media files) at the same time. From my research, this seems to be the case, and that's not my issue.
    In my particular situation -- one that i'm sure is shared by many others -- my partner and i have separate user accounts on the same Mac, +entirely sharing a single iTunes Library+ (ie. same media files, same playlists, etc., as if we were a single user) and as long as we remember to quit iTunes whenever we walk away from the Mac (allowing the other to log in and launch iTunes and access our common library), this is not a problem.
    And that is when my particular problem arises: when we launch iTunes, we are often asked to choose a Library (a series of navigations that my partner isn't entirely comfortable with), and occasionally the Data folder on the TimeCapsule is unavailable.
    As for the wireless connection to our library, this has not so far proven to be an issue. Depending on what other activities are going on at the time (ie. TimeMachine backups or background Internet activity, i presume), i have only rarely experienced brief interruptions in music streaming from the TimeCapsule (<1 second). In fact, last night, we watched a movie on the laptop, with the file streaming from the TimeCapsule, and it only hesitated a few times, and again for less than a second.
    Message was edited by: William Mclaughlin

  • Using Time Capsule to store iTunes library

    I use my 1 TB Time Capsule to store my iTunes library and point my iTunes to where it is stored in the Preferences/Advanced section of iTunes. However, iTunes often reverts to the old storage location on my MacBook Pro. Is there another folder or setting where I need to make a change so that my iTunes stays pointed to my Time Capsule for all of my music?

    Jolly Giant wrote:
    you can have it mounted automatically at start up if you add it to your +login items+ via system preferences > accounts > login items.
    JGG
    Jolly
    Do you have to do this for all users on a machine or is there a central setting?
    Kirk

  • Using Time Capsule disk as Media Library - backup questions

    OK..have my iMac (last of the polycarbonate 27") connected to a 500GB Time Capsule. Am now backing up to a separate external 1TB disk I bought, and I've setup the Time Capsule disk as my Media Library for iTunes. Will I have a problem backing up the TC disk via Time Machine to a different drive?

    Hi...I guess I wasn't clear. It's not a network drive. Both drives are connected to my iMac, the 1TB via USB and the Time Capsule via Ethernet. Both my iMac & my Mac laptop will back up to the USB drive via Time Machine, but I'm wondering if the Media Library on the Time Capsule drive will backup. The Time Capsule drive is not listed in the exclusions in Time Machine preferences, so I'm guessing it will, but was wondering if anyone had a similar experience.

  • How can i restore an iphoto library without using time machine

    I somehow created a new iphoto library and my old one was deleted and wasn't saved using time machine. Is there any way i can get my old library back. Please help!!!

    The dock icon always enters the last IPHOTO library opened - so all may not be lost ..
    Look in Macintosh HD/Users/*your name on your mac/Pictures
    iPhoto Library is the default - if you have another iPhoto library with some extension that may be the new one -- so simply click on iPhoto to reset the dock icon.
    If you use time machine - and the Iphoto library is empty - Enter time machine while in this folder and back up through time until you find the last one with pictures.

  • HT5552 I am unable to setup payment method using American Express.

    I am unable to setup payment method using American Express.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Is is possible to use AdobeLibraryAPI.js to create a custom library on Android

    With the iOS App Builder, we are allowed to upload our own custom library Zip file.  The library uses AdobeLibraryAPI.js to interact with entitlement and fetch folios. 
    We are having problems trying to implement the same custom library from our iOS app into our Android app.  Specifically, the login api calls are failing...

    Adobe Reader for iOS doesn't support forms. A few non-Adobe PDF viewers have some support. The one that is the best at this time is Readdle's PDF Expert, which also has decent support for JavaScript, so calculations are supported.

  • How to set up time capsule with existing network that uses airport express/extreme

    I have an existing wirelss network using airport express. I want to upgrade to time capsule and use the A/P express upstairs. I dont want to delete the existing network.

    I suggest to use your airport express to extend your wireless network that is created by your new time capsule

  • Can I use Time Capsule for Time Machine and a place to put my iPhoto Library

    Can I use Time Capsule for Time Machine and a place to put my iPhoto Library?

    Only if you partition the Time Capsure into two partitions, one for TM and one for the iPhoto LIbrary.  But you won't be able to backup that library as it will be on the same drive as the TM backups.
    It's not recommended.  An alternative solution is to get another EHD, move the library to it and run it from there. Then TM can backup both your boot drive and the working EHD drive.
    OT

  • The memory on my MAC is full. It holds 4GB of RAM of which 79GB are photos. I would like to back up my photos to an external drive but just don not know how. I do not wish to use time machine. How do I back up my photo library, then delete the them t

    The memory on my MAC is full. It holds 4GB of RAM of which 79GB are photos. I would like to back up my photos to an external drive but just do not know how. I do not wish to use time machine. How do I back up my photo library, then delete them from my MAC to free up that 79GB? Thank you.

    Hi
    Just to clarify a couple of points in your post.
    RAM (memory) is different from hard drive space. You have 4GB of RAM, but that has no bearing on the amount of drive space you have, of which we know that 79GB are photos.
    If those photos are in iPhoto, you should be able to move the entire iPhoto Library, from the Pictures folder, to your external hard drive. You can just drag and drop. Do not have iPhoto open while you're doing this. Once it's done, you can double-click on the moved iPhoto Library file to associate it with iPhoto, so that the app remembers where the library is for next time.
    One more thing. When you move a file to a different location, and then delete the original, you don't have a backup. You still only have one copy. So if that external drive dies, you will lose all your photos. Time Machine is a very good way to prevent this from happening. You should dedicate a different drive for Time Machine backups.
    Matt

  • I have a WD 2 tb hard drive that I want to use to back up my Mac Pro quad core.  How do I create a back up startup disk?  Also, when I used Time macine, it only backed up users and not the system or library folders.  Ideas?

    I have a WD 2 tb hard drive that I want to use to back up my Mac Pro quad core.  How do I create a back up startup disk?  Also, when I used Time macine, it only backed up users and not the system or library folders.  Ideas?

    Welcome to Apple Support Communities
    Time Machine should be enough to make a backup of your files. Also, it should back up all folders, so open System Preferences > Time Machine > Options, and make sure that there are no folders included in the excluded items list.
    If you want to create a bootable clone of your hard drive, you need to use an app like Carbon Copy Cloner or the Disk Utility's Restore feature > http://pondini.org/OSX/DU7.html

  • I back up with an external hard drive using time machine.  I am trying to reload my iphoto library from an earlier date then it will let me.  How do I get to an earlier date in time machine?

    I back up with an external hard drive using time machine.  I am trying to reload my iphoto library but it won't let me get back to a date that I need to.  How do I do this?

    Try Pondini's articles;
    http://pondini.org/TM/15.html - scroll down to the pink box for iPhoto restoation.
    Also http://pondini.org/TM/15A.html to clarify how to use the timeline.

  • Long story short....I restored my computer to an earlier point using time machine and now all of the previous back-ups are gone. My question has to do with itunes...is it possible to restore my itunes library to the most recent backup because the restore

    Long story short....I restored my computer to an earlier point using time machine and now all of the previous back-ups are gone. My question has to do with itunes...is it possible to restore my itunes library to the most recent backup because the restore that I did was in march and the latest backup was in may....the reason being is that there were app that i had downloaded that are in my most recent back-up, that were not in the backup I restored to. Is it possible to just restore one application ie)itunes?

    See this post.
    tt2

  • Using Time Capsule with Time Machine AND as iTunes Library

    I want to use Time Capsule as Back up solution for Time Machine and additional as storage for my iTunes Library. We have as a family 3 three Macs and want to use TC as back up solution for each Mac. That is no problem. But is it possible to use TC as external iTunes library as well. Meaning as TM back up solution AND iTunes library?
    Any ideas how it works?

    HarryWessling wrote:
    I want to use Time Capsule as Back up solution for Time Machine and additional as storage for my iTunes Library. We have as a family 3 three Macs and want to use TC as back up solution for each Mac. That is no problem. But is it possible to use TC as external iTunes library as well. Meaning as TM back up solution AND iTunes library?
    Time Machine will eventually consume all the space on its partition. This will cause problems if you're using that same partition for your iTunes library. I see two options around this problem:
    1) Partition the Time Capsule volume into two volumes, one for Time Machine, the other for iTunes. I understand that this can be done, but can't give you any advice on the method.
    2) Attach a USB external drive to your Time Capsule and put your iTunes library on that drive.

Maybe you are looking for

  • Export Control: list of blocked orders is incomplete (ENGK, RVEXAU03)

    Hi community, I have a strange behaviour on the system. We have activated the credit control some months ago. When there are some orders blocked by credit control, a collegue opens transaction ENGK and runs the report of blocked sales order (report R

  • "Your disk could not be partitioned" "An error occurred while partitioning the disk"

    hello, i am operating on a model a1286 mbp mid 2009 laptop, with 4 gb ram 360 gb hdd, snow leapord updated to maverick, bootcamped w/ win 7 32-bit i tried in mac os x maverick to use bootcamp assistant to partition my bootcamp 180 gb partition to be

  • Default value in advanced  search

    Hi All,           I want to give default values in "open advanced search" in opportunities. I need to give default as sy-datum in Validto field and start date of each quater as default for Validfrom field.                  I have written  the code to

  • Vendor account not affected

    Good day guru                           i have just created a list of recurring entries programmed from nov 2009 to march 2010 and also session for each months were created. now my issue is while carring out batch input monioring for each month eg no

  • Toc question & screen writing on tablet

    Hi, I'm currently running the demo and doing some research for a client to determine if Captivate has the functionality they need. They have previously used another application with which they could 'write' on screen using a tablet pc & pen. This ena