ICal / Run Script / Is this even possible?

Hello.
I would like to generate an email from an event I create in iCal.
I have set up my applescript to run with the "run script" option in the alarm section.
All that works fine. Except for one thing that I am not even sure is possible.
Say I create an event called "Liz's Birthday".
Is there a way in the "run script" for me to get via applescript the title of the event? ("Liz's Birthday")
From everything I have read it seems iCal is "done" with the run script once it is run... and that there is no way to call back to the original event to get information.
Note: my script is pretty complicated to i know I can send an email reminder, my goal is to create a whole new email that has the title from the even but not the note. (by default ical will put the body of the event in the note. which we do not want).
thanks.

Hello.
I would like to generate an email from an event I create in iCal.
I have set up my applescript to run with the "run script" option in the alarm section.
All that works fine. Except for one thing that I am not even sure is possible.
Say I create an event called "Liz's Birthday".
Is there a way in the "run script" for me to get via applescript the title of the event? ("Liz's Birthday")
From everything I have read it seems iCal is "done" with the run script once it is run... and that there is no way to call back to the original event to get information.
Note: my script is pretty complicated to i know I can send an email reminder, my goal is to create a whole new email that has the title from the even but not the note. (by default ical will put the body of the event in the note. which we do not want).
thanks.

Similar Messages

  • I'm no lab geek but I thought I had a 1st gen IPad. Was having difficulty downloading. Went out bought a new ipad3. Took my gen 1 to Apple store and it's running IOS7. Is this even possible.

    I'm no lab geek but I thought I had a 1st gen IPad. Was having difficulty downloading. Went out bought a new ipad3. Took my gen 1 to Apple store and it's running IOS7. Is this even possible???

    http://en.wikipedia.org/wiki/IPad
    Dope, I deleted link as I pressed  add reply.

  • How is this even possible? Folders out of sync. Backlog command says in sync.

    Two 2008 R2 servers.  Been running DFS-R for about a year now.  Generally no problems.
    If I run the DFSRdiag backlog command on either server, for one particular folder, it says there is no backlog.  The only problem with that is;  on one server there are 11 files in that folder, on the other server, in the same folder, there are
    15 files.  How is this even possible!

    Hi,
    Please check if DFS Replication filter some special file from replication. For more detailed information, please refer to the article below:
    Exclude files or subfolders from replication
    http://technet.microsoft.com/en-us/library/cc758048(v=ws.10).aspx
    If the issue still exists, please create a Diagnostic Report to see if there is any error message.
    Create a Diagnostic Report for DFS Replication
    http://technet.microsoft.com/en-us/library/cc754227.aspx
    Best Regards,
    Mandy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Is This Even Possible? eDirectory syncing passwords with external RADIUS servers.

    We are currently have a solution that allows us to use a campus RADIUS
    server as the authentication mechanism for accessing the Internet. We want
    to integrate this so users can authenticate with their campus IDs but gain
    access to the Novell server (home directory and printing) using the same
    information.
    Is this even possible?
    So, essentially, we would like the external RADIUS' user/password data to
    be synced with the eDirectory data, but have the eDirectory receive updates
    from the RADIUS (or LDAP, Kerberos or whatever system is necessary). Or is
    an all-Novell solution the only possible way to use RADIUS authentication?
    Any input would be greatly appreciated.
    -=Bryan

    Hi Bryan,
    As jim said, you can use idm to do this, but another option for you
    might be to use somthing like freeradius and point it back to
    edirectory as its authentication source.
    Cheers,
    Steve
    On Thu, 23 Feb 2006 15:50:11 GMT, [email protected] wrote:
    >Michael,
    >
    >Thanks for the info. I really wasn't sure where to post this question. I
    >really wasn't sure if I needed to be using Novell's RADIUS server or not to
    >do this. Reading the online docs didn't really help me to know which
    >solution or solutions to choose.
    >
    >-=Bryan
    >
    >> [email protected] wrote:
    >>
    >> > Is this even possible?
    >> >
    >> > So, essentially, we would like the external RADIUS' user/password data to
    >> > be synced with the eDirectory data, but have the eDirectory receive updates
    >> > from the RADIUS (or LDAP, Kerberos or whatever system is necessary). Or is
    >> > an all-Novell solution the only possible way to use RADIUS authentication?
    >>
    >> What you want should be possible with Novell Identity Manager (formerly
    >> DirXML) product. This particular forum is for help with the NetWare
    >> Radius server, which would not factor into what you are trying to
    >> accomplish... you have a non-Novell Radius server that you want to sync
    >> eDirectory information with, and that is the realm of identity manager.
    >>
    >> As to the "hows", you might as in the nsure-identity-manager group here.
    >>
    >> --
    >> Jim
    >> NSC SYsop

  • I would like to share my photo's titles and descriptions in the photo streams into which I place these carefully labeled photos. I do this so clients can see the names of the things they're swiping through. Is this even possible?

    I would like to share my photo's titles and descriptions in the photo streams into which I place these carefully labeled photos. I do this so clients can see the names of the things they're swiping through. Is this even possible?

    No.  Send a feature request to Apple via http://www.apple.com/feedback/iphoto.html.
    OT

  • ICal Run Script

    I'm trying to run a script via iCal using an alarm and it doesn't seem to work if the computer has been sleeping for a certain amount of time.
    I have an alarm set at 4:15am - 5:15am. If I set the alarm to "run script" and choose the script, it will return something like the script didn't finish. If change the script up as an application and set the iCal alarm to open file it returns an error "No user interaction allowed."
    Here's the real kicker. If I set the alarm to run within a few minutes or so, it works just fine using either run script or open file, but if the computer has been asleep for a certain amount of time, it flakes out. I tried using the energy saver seting to wake the computer up a minute before the script runs, but that didn't make a difference. I also thought it might be because there was the screen saver was password protected, but I turned that off and that didn't work either.
    Not that this really matters, but the only thing the script is doing is kicking off a FileMaker script that runs an import. So it is very simple and I set a timeout on it just to be sure that wasn't an issue either. The Filemaker script only takes about 2 minutes to complete. Here's the code...
    delay 10
    tell application "FileMaker Pro Advanced"
    activate
    with timeout of 3600 seconds
    open "HardDrive:Users:username:Documents:FileMakerFile.fp7"
    do script "ImportScript"
    end timeout
    end tell
    Does anyone have any ideas on this one? I'm running this on a Quicksilver G4 with OS 10.4.6. iCal is v2.0.3 and applescript is v1.10.6.
    iBook G4    

    I'm having same problem
    Bruce: did you find a solution?

  • I recently bought a new iMac as well as a wireless time capsule and have it connected how can I use this external drive as the location to store all my files for iTunes, or is this even possible?

    New iMac user here, I recently bought a new iMac and Time capsule and have the whole network up and running now. I have connected another external HD to the time capsule as well and have a total of 3 TB of storage connected wireless to my new iMac. My question is can I use this location as the default location for iTunes?  I doubt I am gonna run out of room considering the iMac has 1 TB of storage already, but I'd prefer to keep my movies and music off the Mac to keep it running smoothly. If this is possibly, I'd like to do this with iPhoto as well. 

    I would advise against placing your iTunes library on a Time Capsule.
    The Time Capsule is designed as a backup device and not for wireless streaming of video.
    Before you do anything more, can I suggest you put into place a reliable, redundant backup strategy.
    Unless you are prepared to risk loss of your iTunes library due to a hard drive failure, I would not put iTunes on the Time Capsule.
    Leave your iTunes library on your iMac until such time as your internal drive is full. Backup to Time Capsule using Time Machine and create a clone of your internal iMac HD to your external drive.
    That's my 2 cents worth. Others may have a different opinion.

  • Computer crashed, need to get music off my ipod onto new harddrive. Is this even possible anymore?

    My computer crashed and I got a new hardrive. I need to get my music off my Ipod Touch 4th gen onto my new computer...is it even possible anymore?

    For iTunes purchases:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    For other music you need a third-pary program like one of those discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities

  • Google Calendar (gCal) and the iPhone - is this even possible

    Is it possible for me to configure gCal to work with the iPhone Calendar application? Are there any restrictions (I.e. view only, etc?)
    Much thanks in Advance!
    -Sig

    You can do it, it takes a bit of work.
    (THESE INSTRUCTIONS ARE USEFUL IF YOU HAVE AN APPLE COMPUTER!)
    I did it like this -
    I have a Mobile Me account, so my iPhone calendar syncs automatically to Mobile Me.
    I have iCal on my iMac desktop machine set to sync with Mobile Me also.
    (So, so far, my iPhone and desktop iCal always match)
    THEN: Use Spanning Sync - this is a 3rd party app that you install on your computer. It allows you to sync in both directions (to and from) Google Calendar.
    You just give Spanning Sync the info about your Google Calendar, and it syncs it with the iCal on your computer. Then MobileMe syncs your computer with your iPhone. It works great, because I can put things onto my iPhone calendar, and they'll show up on my work calendar and my home calendar, so my family AND my coworkers can keep abreast of my schedule, and even update it for me if necessary! (Every now and then I'll get a new calendar appointment that says "2:00pm today: Buy chocolate for your wife"!)
    Hope that's useful!

  • Complicated Sumbit Button Needed - Is This Even Possible?

    I have created a fillable form that, once filled, must be printed to gather required (various) signatures. I need to create a submit button to include with the Print button that with send an (prepopulated) email notification to the Director. The email will need to contain the first four fields filled in. How would I go about scripting the submit button to do this?
    Also, is there a way to create this button so that it sends ONLY the selected fields and not the entire PDF/XML data?
    Even further, though not as urgent, is it possible to validate the Print button so that the form will NOT print unless the submit button has been clicked?

    What you are explaining is possible to do.  I have designed a number of forms where I have consolidated many documents into one PDF.  In order to do this to offer the best user experience for those filling the form out you have to understand the company's requirements.  Are they wanting one PDF form which a user can select from a dropdown or radio button the type of form they want to fill out.  Do they want a design in which the customer can fill out different forms in the same pdf and then email the final results back to the designated email address?
    #1  If all they want to do is add have the form accessible via their website they just need to add the pdf form to a site page or set a link to the location of the pdf of the server.
    #2  When using the mailto function what script language are you using?  FormCalc or JavaScript?  Beyond this, are they wanting a filled in PDF form returned via email or just the data which can be passed back to the company via XML script in the email?
    #3  I don't like to incorporate digital signatures into the documents I create unless I know how they plan to use the forms and if the company's legal department approves a digital signature as opposed to liquid.  The best thing you can do is check with the company's legal department to see if a digital signature on the forms you are creating is acceptable for these types of document.
    #4  You had the right idea with the email button but you also need to Reader Extend the PDF form but the company or you (depending on who Reader Extends the form) needs to be aware of the licensing agreement for Reader Extensions unless one is purchased which can become expensive.
    #5  As far as the forms you pulled off the Governments website, you need to create your own version of the form and incorporate into the single consolidted form you are creating.
    Best of luck on this project.
    J Black

  • Want to use an iPAD with my Pismo, is this even possible

    Ok, here come the chuckles...
    I have a Pismo set to dual boot in either 9.2.2 or 10.4.1with the aid of firewire which houses OSX basically because I'm still using Photoshop 5.5 which runs faster in 9 than using 9 classic from OSX. I want to do Fingerpainting on a mobile device like an iPOD or iPAD and I am told my processor (400) won't support 10.5. Apple sales just said what did I expect, I was using a 10 year old computer.
    Can I upgrade the processor on the Pismo to accomplish this or has my Pismo had it's day. I love it and it has been dual booting and doing just fine now for 2 years.
    I do have one more problem... none of my IOMEGA devices, my JAZ and my ZIP will not run from my old system 9 since I made the change over to dual boot and I have a lot of paintings stored on them that I would like to transfer to CDs. I know too many questions in one post but maybe someone, somewhere is as broke as I am and needs to hang on and upgrade the impossible like I do. I'd like to address these issues to those of you who can't just go out and buy a new computer and all new software. My finances are so bad right now, I'm having a hard time paying attention, so please bear with me. Any thoughts?
    sharon

    Here's the spec page on your G3 Pismo - http://www.everymac.com/systems/apple/powerbookg3/stats/powerbook_g3_400fw.html
    The max OS on the Pismo is Tiger 10.4.x Even if the Pismo could run Leopard 10.5, it would be slow. Snow Leopard 10.6 requires an Intel processor.
     Cheers, Tom

  • Nested detail taskflow w/h back btn support - Is this even possible in ADF?

    Problem description:
    I have a master-detail page, when you select an item takes you to the details page.
    The way this happens is that the detail page task-flow's managed bean reads params from the request url, runs an expensive search (params validation and search performed in constructor) and renders the page for that item. Inside this detail page, I have links to other items and clicking on those links should basically run the search again and render the detail page again for the item selected from previous detail page. Another requirement is to have the browser's back/forward buttons working properly.
    I'm currently doing a HTTP redirect to detail task-flow every time to make this work. Does anyone know how to do this with ADF properly? .. same page loaded again and again with browser support?
    But I have the problems with this implementation:
    Problem 1: If I use a backing bean scope for the task-flow, the constructor gets called for every UI interaction like button click, link click, etc. and the expensive search runs repeatedly (2-3 times).
    problem 2: If I use view scope, problem one is gone but the detail links to other items wouldn't work. (HTTP redirection wouldn't work at all).
    Can you please advise possible options to make this work along with suggestions to make the flows better?

    Why can't you use 2 jspx within the same taskflow - master.jspx and detail.jspx and do the logic inside a method call enroute to the detail.jspx
    Something like this in a taskflow -
    Master.jspx --> methodCall to set the detail Row --> Detail.jspx
    P.S. Using jspx instead of jsff would make back button support in browsers possible.

  • Is this even possible with Bridge?

    I do alot of work with Photoshop and some other products but am new to Bridge.  I've been tasked to use Bridge to find a specific type of TIFF file that is being generated by one of our legacy patient record systems.  It isn't in a standard TIFF format but some type of 8BPP format.
    Is it possible to use Bridge to find these type of files in a directory and search all subdirectories (about 500)?
    Any help would be really appreciated as I don't even know where to start.
    Thanks!

    It depends if that information is entered as a metadata point.  Click on picture and see if that has specific data in the metadata tab.  Also check the metadata in preferences to see if you have checked this data to be displayed.
    If so I believe you can search the "all metadata" in Find.  Type in the appropriate fields in search boxes.

  • Is this even possible with a selectManyCheckbox???

    I know I can do one of two layouts with a selectManyCheckbox, line or page. I would like to have the checkboxes go horizontally i.e. line, but after x number of them, say 5, I would like to start a new row rather than scrolling off to the right... I see that a selectManyCheckbox actually renders an HTML table so I tried to use the pass-through attribute "cols" to set it but no dice. Anyone have any idea how to do this or even if it is possible?

    I would say that you would have a device at the dsl first then connect everything else up that is needed. It would have to be wired to the dsl.

  • Is this even possible? (Rotation question)

    Hi! I'm new to Java 3D... What I am trying to do is to rotate one transform group around another transform group. i.e. get a moon spinning the earth does anyone know how to do this? I am posting my code below.... I've searched the forums already and alas found no answer :( I've tried everything as you can see from the bottom of the code where all the "garbage" is. The actual earth has been commented out so that I can see the moon. Any help would be greatly appreiciated!! Thank you in advance! -JET
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.JFrame;
    import java.awt.GraphicsConfiguration;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.geometry.*;
    import com.sun.j3d.utils.image.TextureLoader;
    class System2 extends JFrame // implements ActionListener
         //a SimpleUniverse is used for this program
         System2() //constructor executes Program
              JFrame view = new JFrame("Program");
              view.setSize(800,600);
              GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
              Canvas3D c = new Canvas3D(config);
              Container cp = view.getContentPane();
              cp.add(c);
              SimpleUniverse u = new SimpleUniverse(c);          
              BranchGroup run = createSceneGraph();
              u.addBranchGraph(run);
              u.getViewingPlatform( ).setNominalViewingTransform( );
              view.setVisible(true);
         public BranchGroup createSceneGraph()
              //define Colors
              Color3f yellow = new Color3f(0.9f, 0.8f, 0.0f);
              Color3f bgColor = new Color3f(0.05f, 0.05f, 0.2f);
              Color3f white      = new Color3f(1.0f,1.0f,1.0f);     
              Color3f nullCol = new Color3f(0.0f,0.0f,0.0f);
              Color3f earthDiff = new Color3f(0.49f,0.34f,0);
              Color3f earthSpec = new Color3f(0.89f,0.79f,0);
              // Create a bounds for the background and lights
              BoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
              //create BranchGroup
              BranchGroup root = new BranchGroup();
              // Set up the background
              Background bg = new Background(bgColor);
              bg.setApplicationBounds(bounds);
              //root.addChild(bg);
              //add first TransformGroup
              TransformGroup earthTrans = new TransformGroup();
              Transform3D earth3d = new Transform3D();
              earthTrans.setTransform(earth3d);
              earthTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
              root.addChild(earthTrans);
              //Creating a Sphere for the Earth          
              //sets the appearance of the earth adds a texture image
              Appearance earthApp = new Appearance();
              earthApp.setColoringAttributes(new ColoringAttributes( yellow,ColoringAttributes.NICEST));
              PolygonAttributes polyAt=new PolygonAttributes(PolygonAttributes.POLYGON_FILL,
                                            PolygonAttributes.CULL_NONE,0f);
              earthApp.setPolygonAttributes(polyAt);
              Material earthMat = new Material(new Color3f(1f,1f,1f)
              ,new Color3f(0.25f,0.25f,0.25f)//Shadows color
              ,new Color3f(1.0f,1.0f,0.8f)//Sun's light
              ,new Color3f(1f,1f,1f)
              ,128);
              //earthMat.setAmbientColor(0,0,0.5f);
              //earthMat.setDiffuseColor(1,1,1);
              //earthMat.setShininess(1000);
              //Material(white,white,earthDiff,earthSpec,100f);
              earthMat.setLightingEnable(true);
              TextureLoader picload = new TextureLoader("earth.jpg",this);
              Texture earthpic = picload.getTexture();
              earthpic.setMagFilter(Texture.BASE_LEVEL_LINEAR | Texture.NICEST);
              earthpic.setMinFilter(Texture.BASE_LEVEL_LINEAR | Texture.NICEST);
              earthApp.setMaterial(earthMat);
              earthApp.setTexture(earthpic);
              TextureAttributes texAttr = new TextureAttributes();
              texAttr.setTextureMode(TextureAttributes.MODULATE);
              earthApp.setTextureAttributes(texAttr);
              //adding lights to the sphere
              System.out.println("directional lights");
              Vector3f direction = new Vector3f(-1.0f,-0.5f,0.1f);
              DirectionalLight dirLight = new DirectionalLight(true,white,direction);
              dirLight.setInfluencingBounds(bounds);
              root.addChild(dirLight);     
              //creates the earth
              Sphere earth = new Sphere(0.5f,Sphere.GENERATE_TEXTURE_COORDS | Sphere.GENERATE_NORMALS,100,earthApp);
              earthTrans.addChild(earth);
              System.out.println("doing rotation");     
              //Setting rotation of Earth
              Alpha rotEarth = new Alpha(-1, 10000);
              Transform3D yAxis = new Transform3D();
              //Setting the rotation in a clock wise direction (could have used default constructor)
              RotationInterpolator rotator = new RotationInterpolator(rotEarth, earthTrans, yAxis,
                        0.0f,(float) Math.PI*2.0f);
              rotator.setSchedulingBounds(bounds);          
              earthTrans.addChild(rotator);
              //end Earth
              //Start Moon
              TransformGroup moonTrans = new TransformGroup();
              Transform3D moon3d = new Transform3D();     
              moonTrans.setTransform(moon3d);
              moonTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
              root.addChild(moonTrans);
              Appearance moonApp = new Appearance();
              Material moonMat = new Material(new Color3f(1f,1f,1f)
              ,new Color3f(0.25f,0.25f,0.25f)//Shadows color
              ,new Color3f(1.0f,1.0f,0.8f)//Sun's light
              ,new Color3f(1f,1f,1f)
              ,128);
              moonApp.setMaterial(moonMat);
              moonApp.setColoringAttributes(new ColoringAttributes( white,ColoringAttributes.NICEST));
              Sphere moon = new Sphere(0.2f,Sphere.GENERATE_NORMALS,moonApp);
              moonTrans.addChild(moon);
              Alpha rotMoon = new Alpha(-1, 4000);
              yAxis = new Transform3D();
              //Setting the rotation in a clock wise direction (could have used default constructor)
              RotationInterpolator moonSpin = new RotationInterpolator(rotMoon, moonTrans, yAxis,
                        0.0f,(float) Math.PI*2.0f);
              moonSpin.setSchedulingBounds(bounds);
              Transform3D axisOfTranslation = new Transform3D();
              Alpha transAlpha = new Alpha(-1,
                        Alpha.INCREASING_ENABLE |
                        Alpha.DECREASING_ENABLE,
                        0, 0,
                        5000, 0, 0,
                        5000, 0, 0);
              axisOfTranslation.rotY(-Math.PI/2.0);
              PositionInterpolator translator =
                             new PositionInterpolator(transAlpha,
                             moonTrans,
                             axisOfTranslation,
                             2.0f, 3.5f);
              translator.setSchedulingBounds(bounds);
              moonTrans.addChild(translator);               
              moonTrans.addChild(moonSpin);
              root.compile();
              return root;
         public static void main (String [] args)
              System2 sys = new System2();
              TransformGroup moonTrans = new TransformGroup();
              Transform3D moon3d = new Transform3D();     
              moonTrans.setTransform(moon3d);
              moonTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
              root.addChild(moonTrans);
              TransformGroup sunTrans = new TransformGroup();
              Transform3D sun3d = new Transform3D();     
              sunTrans.setTransform(sun3d);
              sunTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
              root.addChild(sunTrans);
              //creates the Sun that is used for Directional lighting
              Appearance sunApp = new Appearance();
              sunApp.setColoringAttributes(new ColoringAttributes( yellow,ColoringAttributes.NICEST));
              Sphere sun = new Sphere(0.2f,sunApp);
              sunTrans.addChild(sun);
              //positions the sun
              Alpha posSun = new Alpha(-1,Alpha.INCREASING_ENABLE |
                        Alpha.DECREASING_ENABLE,
                        0, 0,
                        5000, 0, 0,
                        5000, 0, 0);
              PositionInterpolator sunPos = new PositionInterpolator(posSun, sunTrans);
              sunPos.setSchedulingBounds(bounds);
              sunTrans.addChild(sunPos);
              //root.addChild(aLgt);
              AmbientLight a = new AmbientLight(white);     
              a.setInfluencingBounds(bounds);
              root.addChild(a);
              System.out.println("point light");
              PointLight pl = new PointLight(true, white,new Point3f(1f,0f,1f),new Point3f(1.0f,0f,0f));
              pl.setInfluencingBounds(bounds);
              root.addChild(pl);
    Transform3D Trafo_1 = new Transform3D();
              Transform3D Trafo_2 = new Transform3D();
              Trafo_1.rotX(0.5);
              Trafo_2.rotY(0.5);
              Trafo_2.mul(Trafo_1);
              RotationInterpolator moonEarth = new RotationInterpolator(rotMoon, moonTrans, Trafo_2,
                        0.0f,(float) Math.PI*2.0f);
              //Billboard moonEarth = new Billboard(moonTrans, Billboard.ROTATE_ABOUT_POINT, new Point3f(0f,0f,0f));

    Yes it is possible. Build a scene graph where the TransformGroup of the moon is a child of the TransformGroup of the earth.
    TG1 __________ Earth Shape3D
    |
    |____ TG2 ___ Moon Shape3D
    In this way the overal transformation for the moon is the concatenation of TG2 and TG1. The transformation for the moon TG2 has to be given relative to the earth (i.e. the middle of the earth is the center of the local coordinate system for the moon).
    If you want the earth spinning then build the following graph:
    TG1___ TG3 ___ Earth
    |
    |____ TG2 ___ Moon
    Put the transformation of the earth position in TG1. Put the spinning transformation of the earth in TG3 and the position transformation of the moon relative to the earth in TG2. Thus the spinning of the earth will not interfere with the position of the moon.

Maybe you are looking for