Pages 09 Saving using applescript automatically makes a package

I can manually save a document as a flat file, but when I run my applescript, it saves as a package, even though "Save new documents as packages" in the Preferences is unchecked.
Is this the same issue as this thread? http://discussions.apple.com/thread.jspa?threadID=2141532&start=15&tstart=0

OK, I am using Pages 09
Here is a sample letter I want to save:
Marcus Welby, M.D.
666 Hemingway
Kansas City, KS 66111
Re: Joe Jones
5/3/80
Dear Dr. Welby:
I appreciated the opportunity to see your patient in the office today
Thank you very much for letting me help with the patient’s care.
Sincerely,
Dr. Doolittle
Here is a sample from the script I run to save, print, organize my dictation for the day:
--sets the date as a string yymmdd
set theyear to (year of (current date)) - 2000
if theyear < 10 then
set theyear to "0" & theyear
end if
set themonth to (month of (current date) as integer)
if themonth < 10 then
set themonth to "0" & themonth
end if
set theday to (day of (current date) as integer)
if theday < 10 then
set theday to "0" & theday
end if
set datefolder to theyear & themonth & theday
set datefolder to datefolder as string
--gets the patient's name from the document (all my documents have "Re: patient's name" at the top of the page
tell application "Pages"
set newdoc to front document
set AppleScript's text item delimiters to "Re: "
set ptdoctext to text of newdoc as string
set ptname to 1st paragraph of 2nd text item of ptdoctext
set AppleScript's text item delimiters to ""
--save the document in datefolder under ptname
set filen to ":Users:[home folder]:Documents:Dictation:" & datefolder & ":" & ptname & ".pages" as string
save newdoc in filen
end tell
If I run this script on the document, it saves as a package
If I save the document manually, it saves as a flat file (because the preference to save as a package is not checked)
It's not a big deal to save as a package, just takes up more disk space.
Please try running the script on your system with Enregistrer les nouveax documents comme pacquets not checked. I bet it still saves as a package.
Merci

Similar Messages

  • Pages saving every change I make

    HI, I wonder if anyone is having the same issue that I am having with Pages (and Numbers)?
    Everytime I write any text or make changes the 'Progress...saving' dialogue comes up and I have to stop and wait for it to save. This makes the two apps almost unusable.
    Boht are updated and current versions.
    Any help or guidance is appreciated as I cannot bear moving back to office, but have work to do!!

    Resolved this by signing out of iwork.com!!

  • Using Applescript to make a repeatedly keystroke

    Hi, I am wondering if there's another place where this thread would be morewellplaced, but couldnt find anything about Applescripting, so here goes:
    I dont know if this is possible, but i would like to have a key pressed repeatedly - all the time - while i am playing World of Warcraft on my mac.
    I am playing in windowed mode - this means not in full screen.
    In the game i have bound a certain action to the button "0" (zero).
    I need to have this key repeatedly pressed every second or so.
    Is this possible with applescript? And how would the script look?
    Hope someone can help me
    Kind regards

    Hi,
    Thx for the suggestion
    I tried using this script. It didnt really do anything "inside" the game, other that my movements behaving strangely. I think it was running outside the game and kind of interfering in some manner.
    I then tried to make an extra line in the script myself:
    activate application "World of Warcraft"
    I dont really know what it does, but it sounded like it maybe would press the key inside the actual game (in the right application window)... but this didnt work either.
    So i may have to give up unless someone know something more about this.

  • I am trying to use AppleScript to make a quick compose app for iMessage.

    tell application "Messages"
                        set theBuddy to buddy of service " "
      send myMsg to theBuddy
              end tell
    I was wondering, what are possible services. Because every time I try to run the program it says cannot get the service. And how can generalize this service in case I choose to distribute this application. Or use it for some other application.

    Easy:

  • What is speech recognition server? Can I use applescript to make an app like siri??

    tell application "SpeechRecognitionServer"
    set response to listen for {"good","bad"} with prompt "How are you?"
    if response is "good" then
    say "Wonderful sir.. Is there anything you want me to do for you?"
    else
    say "Cheer up! Is there anything I can do for you?"
    end if
    end tell
    This is the script i'm trying to run, but there's a problem! it says - "Where is Speech Recognition Server"

    The path for that is /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognit ion.framework/Versions/A/SpeechRecognitionServer.app

  • Using applescript to open launchpad

    Hello all,
    I just bought a new iMac yesterday, and I love the multitouch features of my new magic mouse, but I had wanted to be able to add a few more so that I could use similar functions to those which I use on my iPad. I discovered the app Magicprefs, and it works great, but one thing I wanted to do was make it so that a two finger swipe up opens Launchpad, and a two finger swipe down closes it. From what I can tell, Magicprefs makes it so that a two finger swipe up will open and close Launchpad, and same with a two finger swipe down. I was trying to use applescript to make it so that a swipe up will only open it and a swipe down will only close it, not do both. The problem is that while I am familiar with basic programming I am not familiar with the exact language used in applescript and also it looks like launchpad is not simply opened and then quit so these basic commands are not working. Could anyone give me the basic code I can use to tell Magicprefs to open it with a swipe up and to close it with a swipe down? Or if this is even possible? Thanks for any help!

    You can't make a keyboard shortcut to run a specific application from OSX, although there are third party applications such as Quicksilver that can do things like that. You can use an AppleScript to activate an existing menu item, for example:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    tell application "Finder" to activate
    tell application "System Events" to tell application process "Finder"
    keystroke "A" using {shift down, command down}
    end tell</pre>
    Other alternatives to keyboard shortcuts are to use the Scripts Menu or add an application to the Finder's toolbar. The Script Editor does not need to be active to use scripts.

  • I am using Aperture to make a photo book.  I have about 400 photos in the project.  I am able to select the photos I want for 20 pages, then when I try to add a page, all the pictures are selected.  How do I add additional pages and still control the pix

    I am using Aperture to make a photo book.  I have about 400 photos in the project that I am selecting from.  I want to use about 70 for the book.  I am allowed to pick and choose photos until I fill 20 pages.  Then when I select add page, I am allowed to select all the pictures in the project.  I am not allowed to select.  I think I hve to change a setting, bt what?  Thanks for the help.

    .  I am not allowed to select.  I think I hve to change a setting, bt what?
    David, have you enabled the "Autoflow" options? There are settings behind the cogwheel, that will automatically place unused images onto new pages. If you only want to select a few images from a large project, disable these two options:
    Or start your book froman album, that only contains a selection of your images, rather than from the whole project.
    Reagrds
    Léonie

  • Firefox 6.0.1 update won't recognize the home page which uses a password access which has been saved into 6.0.1.

    Question
    Firefox 6.0.1 update won't recognize the home page which uses a password access which has been saved into 6.0.1. The security shows permissions for the web site but doesn't recognize that I've been accessing the web page every day since I updated to 6.0.1. Web page trying to access is <http://classic.wunderground.com/cgi-bin/findweather/getForecast?query=zmw:98108.5.99999> This home page worked fine on earlier versions of Firefox and continues with Internet Explorer 9.0.

    Looks like its been fixed for me, not by 6.0.1 but by - Todd Siechen from http://www.dvdthemepak.com
    Check out his post at:
    http://discussions.apple.com/thread.jspa?threadID=335417
    Todd... I love you xxx
    After having a nightmare since first day of version 6.0.0 and still no fix after 6.0.1, even after Apple requested the files... You fixed my problem... Checked for duplicate fonts and found about 5, selected "Resolve Duplicates" and everything great, even with old projects... You should work for Apple!
    Check out the 2 posts:
    http://discussions.apple.com/thread.jspa?threadID=313109
    http://discussions.apple.com/thread.jspa?threadID=366383
    1) The first and biggest culprit we found to be causing problems is with font issues. In order to alleviate this problem, open Font Book and make sure all the Fonts that are turned on have no dots next to them. If they do then select them and select "Resolve Duplicates" from the Edit menu. If you are using a different font manager then use whatever tool is available to make sure no duplicate fonts are loaded. iDVD 6 is very sensitive to this.
    Many many many many many many many many many many many many many thanks.
    Regards,
    Charles Teton
    United Independent Pictures Ltd.
    http://www.makingmymovie.com

  • I have a currently updated Mac that's fast as lightning. I use eBay A LOT. In the newest version when I hit the back button it takes me to the original "new tab" page. Please don't make me use Chrome or Safari, I love you guys

    Hello,
    I have a Mac that's fast as lightning running on the latest version of OS X. I use eBay A LOT. In the newest version of Firefox that I just downloaded when I hit the back button it takes me to the original "new tab" page. Please don't make me use Chrome or Safari, I love you guys

    Thank you for your kind words on the Tablet, as this is the only product mentioned that is supported on this forum, The forums here are for Home Electronics and Computers, and do not reach the Sony smart phone community.
    The Sony smart phone Support Forum is the place for Sony (formerly Sony Ericsson) users from around the world to get help and help others:
    your very in depth suggestions and comments would best be heard at the following forum that is dedicated exclusively to the Sony smart phone community.
    http://talk.sonyericsson.com/community/support

  • How do I get pages 5.2 to automatically update the date - use 10.9.2

    How do I get pages 5.2 to automatically update the date in my documents - before the update I could do this. Does anybody have the knowledge or a workaround.
    If not I will dump pages 5.2 and use my old version!!! this feature is important for any and all businesses using pages??
    Any advice on how to achieve this is greatly appreciated
    I use a number of macs all using OSX
    10.9.2

    I have the same problem.
    What confuses me is that all the apple provided templates in pages seem to auto update their time and date upon opening.
    So there MUST be a way to do it... Ive been unable to work out how...
    Amnon

  • How to use AppleScript to set "character fill color" in Pages 5.2?

    For Pages 5.2 on OSX 10.9.3, what is the correct applescript for changing the "character fill" of text in pages. 
    If you highlight text, you do this via your mouse in the inspector by clicking "style," "advanced option (the gear wheel to the right of bold, italics, and underline), "character fill color (clicking on the multi-color circle, not the dropdown menu), and then choosing a color that comes up in the "colors" dialogue box.
    I've looked all over and cannot find how to use applescript to set the character fill color in pages. 
    In some examples (not directly related) I see "character fill" used. 
    In others, I see "colorfill." 
    Basically, I want to use applescript, embedded in a keyboard maestro macro, to change the background color of the text (not the text color itself) to particular colors. 
    Given the changes and updates to Pages this year, and to applescript, what's the easy way to do this?
    Thanks!
    Chuck

    Pages v5.2 still does not include selection-object, or character background color entries in its AppleScript dictionary, as does Pages ’09. Indirectly, using System Events, you can get the text selection in Pages v5.2, but then you can do nothing to change the selection. No assurances as to if or when Apple will mature the AppleScript dictionary support for Pages v5 series.

  • How to make a spot swatch with specific name by using AppleScript?

    Hi there,
    I am trying to create a script in AppleScript to make a new spot color swatch that must be the COLOR TYPE : SPOT (with specific values). I've got it to make a global process color but can't seem to make a spot swatch. I'm using the script below :
    tell application "Adobe Illustrator"
        set docColorSpace to color space of document 1
        if (docColorSpace is CMYK) then
            set SpotColor to {cyan:100.0, magenta:0, yellow:0.0, black:0.0}
        else
            set SpotColor to {red:0.0, green:174.0, blue:239.0}
        end if
        make new spot in document 1 with properties {name:"ADHESIVE", color:SpotColor}
    end tell
    I did find an entry in an old forum that did this using javascript, however, I am not experienced with this at all and have no idea what or how to use it on a mac platform. This script is listed below.
    #target illustrator
    var docRef = app.activeDocument;
    var newCMYK = new CMYKColor();
    newCMYK.cyan = 100;
    newCMYK.magenta = 0;
    newCMYK.yellow = 0;
    newCMYK.black = 0;
    var thisSpot = docRef.spots.add();
    thisSpot.name = 'ADHESIVE';
    thisSpot.color = newCMYK;
    thisSpot.colorType = ColorModel.SPOT;
    Any help would be greatly appreciated.
    Thank you!

    You are close but missing the last property listed in the JavaScript… It translates to… 'color type:spot color'
    tell application "Adobe Illustrator"
    set docColorSpace to color space of document 1
    if (docColorSpace is CMYK) then
    set SpotColor to {cyan:100.0, magenta:0, yellow:0.0, black:0.0}
    else
    set SpotColor to {red:0.0, green:174.0, blue:239.0}
    end if
    make new spot in document 1 with properties {name:"ADHESIVE", color:SpotColor, color type:spot color}
    end tell
    BTW… The use of JavaScript in the CS apps is more common because of its 'platform independence' There is a toolkit supplied along with the CS install.

  • Previous version of FF used to automatically reopen saved tabs when reopening FF browser. in version 10 - it's stopped doing that. any fixes for this?

    when closing browser, previous version used to have a pop up window that asked if I wanted to remember the open tab locations and then when I reopened the browser it would automatically open those tabs. this is no longer working in version 10.

    Firefox 4 and later versions save the previous session automatically, so there is no longer need for the dialog asking if you want to save the current session.<br />
    Use "Firefox > Quit Firefox" if you want to restore multiple windows or otherwise have problems with restoring tabs.<br />
    You can use "History > Restore Previous Session" to get the previous session at any time.<br />
    You may need to click the orange/gray Firefox button to see History.<br />
    There is also a "Restore Previous Session" button on the default <b>about:home</b> Home page.
    Using the "Show my windows and tabs from last time" setting is a more reliable way to restore session data.
    * Firefox > Preferences > General > Startup: "When Firefox Starts": "Show my windows and tabs from last time"

  • I have a one-column table in pages.  Each cell has text and a number separated by a colon.  Can I automatically make it two column with everything to the right of the colon in the second column?

    I have a one-column table in pages.  Each cell has text and a number separated by a colon.  Can I automatically make it two column with everything to the right of the colon in the second column?

    Here's another way that is pretty quick to do.
    Formula in Column B is:
    =LEFT(A, FIND(":", A))
    Formula in Column C is:
    =RIGHT(A, LEN(A)-FIND(":", A))
    You can eliminate the colon from the result in column B by writing:
    =LEFT(A, FIND(":", A)-1)
    Once you do the conversion, you should freeze the result by Selecting columns B and C and then Command-C, Edit > Paste Values.
    Regards,
    Jerry

  • Using AppleScript to automate frame grabs?

    My friend has given me a list of frames from the new Dark Knight trailer that he wishes me to grab.
    I know you can step through to the specific frame and Apple-C then past them into your favourite image editor, but for the number of frames he wants, this would be quite tedious.
    So my question is: Is there a way to use AppleScript to jump to a specific frame/time and capture it?
    Many thanks in advance.

    This is good information and a good example script. However that script keeps track of its own video status which could get out of sync with what is actually going on (via setting the status to "Serving Video"/"Standing By")
    In my case the connection could drop and I can't depend on my own tracking of whether I was in a video chat or not.
    Thanks for the link!
    Matt

Maybe you are looking for

  • J_security_check ( login problem )

    Dear All, I am using j_security_check to redirect my JSP page to a login, so I can redirect with out any problem, and the login page ask me for user name and password. I don't know where I should specify the user name and password. I have searched al

  • Difference betyween stock 6600 and 7800 Quad graphic cards

    Ref: getting ready to buy a Quad PM. I'm hearing that the 7800 vs. 6600 improves (reduces) rendering time. I'd like to get some kind of metric that I can use to justify or not to buy the 7800 card rather than stock. The +$350 for the 7800 isn't small

  • GetCodeBase() stopped working on WWW

    I have a Java program that has a LOAD option so users can load data files. In the load function I have code like this: JFileChooser chooser = new JFileChooser(); URL baseURL = getCodeBase(); c_strDirectory = baseURL.toString(); baseDir = new File(c_s

  • [svn] 1606: Merge revision 1605 from branches/3.0.x to trunk.

    Revision: 1606 Author: [email protected] Date: 2008-05-07 14:25:52 -0700 (Wed, 07 May 2008) Log Message: Merge revision 1605 from branches/3.0.x to trunk. Modified Paths: blazeds/trunk/modules/core/src/java/flex/messaging/client/EndpointPushNotifier.

  • I purchased an app a year ago which is on my mac but I cannot transfer to my iPad

    The app is iPad compatible it does not show up on my iTunes app list but is on my iTunes purchase history. I may have to purchase again but was hoping I could access from both.