Saving as template kAISaveDocumentAsAction, can't find how to.
Hi, very simple question, I'm saving documents as ".ai" without problem, can't find the way to save it as ".ait", what is the kAIXXXFileFormat for templates ?
what's wrong in this code ?
thanks !
AIErr PIUEmDocument::SaveAsTemplate( const char* newFileName, bool inShowDialog)
ASSERT(sAIDocument);
ASSERT(sAIActionManager);
AIErr error = kNoErr;
AIActionParamValueRef valueParameterBlock = NULL;
ActionDialogStatus dialogStatus = kDialogOff;
if (inShowDialog)
dialogStatus = kDialogOn;
int aiVer = sAIDocument->GetAIVersion();
error = sAIActionManager->AINewActionParamValue(&valueParameterBlock);
ASSERT(!error );
ASSERT(valueParameterBlock);
if (!error)
error = sAIActionManager->AIActionSetString(valueParameterBlock, kAISaveDocumentAsNameKey, newFileName);
ASSERT(!error);
// file format
error = sAIActionManager->AIActionSetString(valueParameterBlock, kAISaveDocumentAsFormatKey, kAINativeFileFormat); // what is the one for .ait ?
ASSERT(!error);
if (!inShowDialog)
// display options dialog
error = sAIActionManager->AIActionSetBoolean(valueParameterBlock, kAISaveDocumentAsGetParamsKey, false);
ASSERT(!error);
// mantain compatibility with previuos versions
error = sAIActionManager->AIActionSetInteger(valueParameterBlock, kAINativeVersionKey, aiVer);//kAIVersion13); // NO kAIVersion13 !! must be current doc version !
ASSERT(!error);
// embed all fonts
error = sAIActionManager->AIActionSetInteger(valueParameterBlock, kAINativeEmbedAllFontsKey, 1);
ASSERT(!error);
// // a PDF rendition of the document will be saved together with native roundtrip information
// error = sAIActionManager->AIActionSetBoolean(valueParameterBlock, kAINativePDFCompatibilityKey, true);
// ASSERT(!error);
error = sAIActionManager->PlayActionEvent( kAISaveDocumentAsAction, dialogStatus, valueParameterBlock );
ASSERT(!error);
if( !error )
sAIDocument->SetDocumentModified(false);
return error;
I'm not sure if you need one -- an AI Template is just an AI file with a different extension. So you should be able to use kAINativeFileFormat, just make sure your newFileName ends with .ait and I think you're good to go. Or, at worst, rename it after its saved out. But try that last
Similar Messages
-
How can I set up multiple spaces (desktops) on my new MacBook Pro 10.9.5? I have six set up on my other computer MacBook Pro 10.8.5 but can't find how to do it on this new one. Would appreciate help on this. Cheers.
It's not completely obvious. What you have to do in Spaces is to position your cursor to the upper right of the screen, after which faint + (plus) sign appears in that area. Click that, upon which another Desktop will appear.
The + may be difficult or impossible to see with some desktop backgrounds (black, for instance): -
I have read the help info, but I can't find how to change the default email address, to the one that is my adobe I'd?
Adobe Reader for iOS doesn't set the default email address when you email a PDF.
It's found in the Settings app:
Settings > Mail, Contacts, Calendars > Mail > Default Account -
I've just purchased my very first audiobook from itunes as I'm driving from the midlands to Newcastle this afternoon. I thought a book would make the journey more manageable. But now I can't find how to pay the book back! I can see it in my itunes library and play in on my computer, but not on my device (which I have synced since making the purchase). Can anyone tell me where my audiobook is hiding please? Thanks
Can you find the audio book by using the Search feature on the iPod?
Do you have the right boxes checked to sync the audio book to the iPod?
iTunes: Syncing media content to iOS devices and iPod
Note you have to check the boxes in Books pane for the iPod in iTunes to sync books in general and another box to sync Audio Books. -
Dears at Apple:
I can't find how to apply sound enhancements (EQ) for the podcasts now with iOS 6.0 update on any of my devices(iPhone 4s, iPhone Touch (4th Gen), iPad (3rd Gen). Most of the "Podcasts" I listen to are music content based and wanted to apply sound enhancements(EQ) like before when integrated with ipod function. Can you consider to "fix" this issue?
Many Thanks!OK Emanuel I found a solution! I dowloaded and installed "Denon Audio" app from the iTunes store & it works great! It has an EQ you can set curves on manually or use the (few) built in pre-sets. It is a player like the Music app that comes with the iPhone, etc. but restores the EQ functionality so we can adjust the audio of PODCASTS:-) Until Apple fixes this what I consider a bug I will be using the Denon app as my default music player!
-
Where can I find how much memory I have left on my Mac Book Pro?
Where can I find how much memory I have available on my Mac Book Pro?
Open the Finder. The hard drive storage information will be listed at the bottom edge of the window.
-
In the new iOS-7 Safari, has the "reader" function been changed to eliminate the option to modify font size (and hence to modify the number of words per line), or is it just that I can't find how to do that?
iOS 7
Seperate text size modification is no longer available in Safari Reafer.
Use Settings.
Settings >General > Text Size -
TS3274 Somehow I triggered a reverse image and I can't find how to reset it.
Somehow I triggered a reverse image and I can't find how to reset it.
If everything appears to be in negative then try triple-clicking the home button - if that works then you can change what a triple-click does via Settings > General > Accessibility > Triple-Click Home. If it doesn't then go into Settings > General > Accessiblity and turn White On Black 'off'
-
Can I find how many instances of BPEL process is in running state ?
Hi,
How can I find how many instances of BPEL process is in running state ? Any code/API ? help ? ThanksCheck the class com.oracle.bpel.client.Locator...
u can use the method listInstances(WhereCondition wc) to get the required details
Regards
Albin I -
Wherre can I find how to backup my recent purchases from the I tunes store?
Where can I find how to backup my recent purchases from the I tunes store?
I suspect you're looking for a replacement for the backup to disc option.
Try this thread...
tt2 -
I can´t find how to use the "at" sign
I can´t find how to use the "at" sign on my new Mac book??
Go to system preferences/keyboard/input sources and make sure that only US is there.
http://support.apple.com/kb/PH13835 -
How can i find how many smartforms using a particular smart style
hi experts ,
how can i find how many smartforms using a particular smart style
thnks in advanceHi,
Go to your smartform
Click on Form Attributes->Output options> There you can find the Style.
Reward points if useful.
Thanks! -
I deleted the iCloud application from my macbook. Now I can't find how to redownload it?
My understanding is it should show up here on my system preferences page. This is a screenshot of what my system preferences looks like. I think it is supposed to be under the "Internet & Network" section?
iCloud should be showing where you are seeing "Mobile Me".
What is your MacOS X version? You can see the version number from the -menu in the main menu bar: " > About this Mac".
You need at least MacOS X 10.7.5 to be using iCloud. http://help.apple.com/icloud/#/mmfc0f1e2a
What exactly did you do to make the iCloud panel vanish? Did you reinstall your system? -
I pre-ordered an album on my ipod a few weeks and it just came out today. When I got to the store and clicked on the album it says purchased. I can't find how to download the album on my ipod.
Hi there,
You may find the article below helpful.
iTunes Store: About Pre-orders
http://support.apple.com/kb/HT5714
When a pre-order item becomes available, you will receive an email letting you know your pre-order is available for download.
-Griff W. -
I got a prompt to upgrade, but the install mechanism just keeps looping, says connecting but nothing ever happens. Daily I get warnings to install, and each effort ends as above. Now some of the prompt boxes (such as "are you sure you want to delete...") appear in subdued/basic mode. I was going to simply revert back to the previous edition that worked, but can't find how to do that.
I am having an issue with the Software Update also. The window says, "It is strongly recommended that you apply this update for Firefox as soon as possible"....It won't let me see the information of this update. I click on it as it highlights but nothing happens. So when I do click next it starts to update but updates all day long. It is not right. I thought maybe a virus? Could somebody tell me what to do? It is constantly happening everyday. thank You!!
Maybe you are looking for
-
32 inch 32C110U1 froze then turn off
my toshiba tv recently froze then the screen faded and made a sound and turned off any help pease i`ve had the tv 6months did it just get hot or is it dying
-
Usage Doubled with no change in Use or Video's ect....
Same Story-Same Run-Around. Are other people seeing this? I have called and called with same responses from all people. They make you switch from unlimited to 20GB plans and all of sudden it doubles.
-
Deployment Failed - Error Codes
Hi.. Again!!! I'm deploying an App-V Package to a couple of test machines but on the deployment monitoring I get: Error Code: 0x80070002 (-2147024894) Error Description: The system cannot find the file specified. Does anyone know what I can do her
-
One of the features of ios 5 is the ability to FaceTime via 3G but I can't do it. Help!
One of the features of ios 5 is the ability to FaceTime via 3G but I can't do it. Help!
-
Skype 7.1: Error "Duplicates not allowed"
Same issue with Skype throwing a duplicates not allowed error when trying to access options from the tools drop down menu. Not able to configure webcam options. I've done all the preliminary actions of recreating the Skype folder in %appdata% and d