I have been working on this Macro for two weeks. It is suppose to open a template file called "Pages Outline.pages" as a new document so the template name isn't on the file. Then run my Title macro. (Runs the Title macro fine). When it gets done with that run prompt for saving the file to a new location. have it get its title from variables I have put in Date-Title - Type Save to the location I have suggested and then close. My issues is can't get the variables to insert in to the Prompt for Save Location Title Line. The macro and the Pages Outline File are included.
I hope I have followed the right protocol. If not I do apologize in advance.
Which variables? You have a variable %Variable%Service% that is never assigned in the macro that I can see, so the variable is empty by the time the Prompt for New File action calls it. Also are you wanting the document title and the file name to match? If so, all you need to do is put the same variables in the Default name field (this assigns the document file name) as you have in the Title field (this assigns the document title).
In the Title portion the Service variable is used. When the variable is set up I have the following: amc | ams | pms |
You are right in this copy It isn't there it is in my regular save file macro. Save File.kmmacros (3.3 KB)
That did answer one thing I couldn't figure out. Why was it putting in pms after the date in the outline? I'm still left with out to get it to take the variable like in the save file macro in the prompt for
Here is the picture again. The pink one is how I can figure out how to get the macro to file in the variables I have entered.
I'm sorry, but I'm not sure exactly what you're asking here. If the variables contain any text, that text will be populated in the Title field for your document where you have entered the %Variable%s. Your Default name (document file name) is just set to the text "Title". I asked if you want the document file name to be the same as the title because my guess was that you might be conflating the two fields. Assuming this was case, my suggestion was to put your variable tokens into the Default name field like so:
I'm not the sharpest tack on this website, but I tried to help. I did download your macros, read them, and tried to understand your question. But after half an hour I still couldn't grasp the question. You might get better results if you followed this advice from the post called "How Do I Get The Best Answer in the Shortest Time?" in that message it says:
Clearly 95% of your macro has nothing to do with your problem (eg, the Button actions, the Pause actions, the insert text actions, the keystroke actions). Can you whittle the problem down to a couple of actions, like setting up a couple of test variables and then the Prompt action?
Ok I went back got it to work. When I open the template how do I keep from modifying the variables in the template. I need it to open the Pages_Outline as a new file no name. Then when I'm prompted to same use the name from the variables. It is working like I want except for the macro modifying the template.
I was able to get this to work using Libre Office. I can't get it to work in pages until I figure out how Apple distinguishes a Template from a Document. It worked in Apple but changed all the variables in the Template. I need the Apple Template to open as a new document. So far I don't know the file type to make the distinction. Anyway here is the LibreOffice copy of the macro.