Default Filename for a New Pages Document

When I collect articles from the web and save them in Word or Beans, the file name defaults to the first line (title) of the document. When I save a new document in Pages, the default file name is Untitled. Is there a way to make Pages use the first line of a new document as the default filename?
This is very useful as the Save Dialog box sits right over the top of the document where the Title is displayed.
If this feature is not yet available, what is a good work around?

This script achieves your goal.
--[SCRIPT saveAs1stParagraph]
Enregistrer le script en tant que Script : saveAs1stParagraph.scpt
déplacer le fichier ainsi créé dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Pages:
Il vous faudra peut-être créer le dossier Pages et peut-être même le dossier Applications.
Copier la chaîne de caractères à utiliser comme nom du document.
menu Scripts > Pages > saveAs1stParagraph
Le script ouvre le dialogue "Enregistrer sous …" et y colle le nom retenu.
--=====
L'aide du Finder explique:
L'Utilitaire AppleScript permet d'activer le Menu des scripts :
Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case "Afficher le menu des scripts dans la barre de menus".
--=====
Save the script as a Script: saveAs1stParagraph.scpt
Move the newly created file into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
Maybe you would have to create the folder Pages and even the folder Applications by yourself.
Copy the string to use as filename.
menu Scripts > Pages > saveAs1stParagraph
The script opens the "Save As…" dialog and paste the selected name in the target field.
--=====
The Finder's Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the "Show Script Menu in menu bar" checkbox.
--=====
Yvan KOENIG (VALLAURIS, France)
2010/05/18
--=====
property theApp : "Pages"
--=====
on run
set the clipboard to paragraph 1 of (the clipboard as text)
my raccourci(theApp, "s", "cs") (* Save as… *)
my raccourci(theApp, "v", "c") (* Paste *)
end run
--=====
on activateGUIscripting()
tell application "System Events"
if not (UI elements enabled) then set (UI elements enabled) to true (* to be sure than GUI scripting will be active *)
end tell
end activateGUIscripting
--=====
==== Uses GUIscripting ====
This handler may be used to 'type' text, invisible characters if the third parameter is an empty string.
It may be used to 'type' keyboard raccourcis if the third parameter describe the required modifier keys.
I changed its name « shortcut » to « raccourci » to get rid of a name conflict in Smile.
on raccourci(a, t, d)
local k
tell application a to activate
tell application "System Events" to tell application process a
set frontmost to true
try
t * 1
if d is "" then
key code t
else if d is "c" then
key code t using {command down}
else if d is "a" then
key code t using {option down}
else if d is "k" then
key code t using {control down}
else if d is "s" then
key code t using {shift down}
else if d is in {"ac", "ca"} then
key code t using {command down, option down}
else if d is in {"as", "sa"} then
key code t using {shift down, option down}
else if d is in {"sc", "cs"} then
key code t using {command down, shift down}
else if d is in {"kc", "ck"} then
key code t using {command down, control down}
else if d is in {"ks", "sk"} then
key code t using {shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "k" then
key code t using {command down, shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "a" then
key code t using {command down, shift down, option down}
end if
on error
repeat with k in t
if d is "" then
keystroke (k as text)
else if d is "c" then
keystroke (k as text) using {command down}
else if d is "a" then
keystroke k using {option down}
else if d is "k" then
keystroke (k as text) using {control down}
else if d is "s" then
keystroke k using {shift down}
else if d is in {"ac", "ca"} then
keystroke (k as text) using {command down, option down}
else if d is in {"as", "sa"} then
keystroke (k as text) using {shift down, option down}
else if d is in {"sc", "cs"} then
keystroke (k as text) using {command down, shift down}
else if d is in {"kc", "ck"} then
keystroke (k as text) using {command down, control down}
else if d is in {"ks", "sk"} then
keystroke (k as text) using {shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "k" then
keystroke (k as text) using {command down, shift down, control down}
else if (d contains "c") and (d contains "s") and d contains "a" then
keystroke (k as text) using {command down, shift down, option down}
end if
end repeat
end try
end tell
end raccourci
--=====
--[/SCRIPT]
Yvan KOENIG (VALLAURIS, France) mardi 18 mai 2010 15:48:40

Similar Messages

  • Anyone know how to change the default font for the new pages? Apparently it does not even come up when I search the 'Help' section of Pages. The level of incompetence in this new version seems breathtaking

    I cannot find how to change the default font in the new Pages. It does not appear in the Help area when I search for it. I am never sing Helvetica for my standard documents and cannot seem to change it. What am I missing? And why does Pages help not have an easy answer?
    dan

    You open a blank template and change the font to you liking. Remember to also get all the styles changed with new font. Then Save As Template. Now you have a template with the font you like.

  • How to change DEFAULT font and font size on new Pages document

    When I open a new Page document, it always comes in with a default font and font size. I know how to change those settings on the open document.
    I want to know how to change the ~default~ font and font size so that a new Page document always opens with those default settings.
    -Thanks for your service to the community.

    Hi Lionate
    Welcome to the forum.
    Make a document to your liking.
    Change the Body style and any other styles in :
    +Menu > Show Styles Drawer > click on the little triangle next to Body > redefine Style from Selection+
    Capture the page:
    +Menu > Format > Advanced > Capture Pages… > Name it > OK+
    +Menu > Format > Advanced > Manage Pages… > Delete other Sections/Pages > OK+
    Save as a template:
    +Menu > File > Save as Template…+
    +Menu > Pages > Preferences > General Preferences > For New Documents > click Use template: > Choose > browse to the template above+
    Peter

  • What's going on? When I type a title on my new Pages document, iwork is substituting a hyphen for the colon I want! Have never seen this one before. How do I correct this imposition? I have the 10.6.8 OS and Pages'09.

    What's going on? When I type the title of my new Pages document, iwork is substituting a hyphen for the colon I want. This is bizarre! How do I make my computer do my thing vs its thing? I have Pages '09.

    Colons are used by the operating system so can't be used in file names.

  • Default filename for print to file in Linux

    Hi,
    I'm using print to file in Linux, and I'd like the default filename to be the page title. I couldn't find a config option for this. It retains the last file name I used, which is very problematic for me, as I can easily overwrite my last printed file by accident.
    I'd also like the printer to default to print to file. Is that possible? Not a big deal, but it would save me a click. :-)
    BTW, I've found that the print to file for PDFs is excellent. It often produces PDFs that half the size of other options I've tried. Thank you!
    Ari

    This is not solved as I do not know where to change the default directory.

  • Making iWork the default apps for opening Microsoft Office documents

    Is there a way to make Pages, Numbers and Keynote the default apps for opening Microsoft Office documents, such that if I double-click a Word document it launches Pages and opens, etc.? I know I can do it by double-clicking the Office document and dragging it to the appropriate iWork app in the dock, but it would be nice to have it happen by default. That way I can put Office in my rearview mirror!

    Fantastic - worked exactly as advertized. Thank you both!! Office is now a distant memory (except when I have to save in MS formats to send files to the unfortunate masses).
    Best regards,
    John McMahon

  • How can I change the default settings in the new pages?

    How can I change the default settings in the new pages?

    Create a new document and change the settings to what you want i.e. Times New Roman, 12 pt. and save as a template from the Edit menu. Then go to Pages Preferences (Cmd +,) and under general change the template to open to your saved template that you want as your default setting.
    Hope that helps.

  • How to Title New Pages Document

    Using Pages on iPad 2 :
    A default title (Blank 1,2,3, etc) is given to each New Pages document.  Can I edit that title, and if so, how?.

    Go to the screen with all of the documents, and then tap on the title 'Blank 1' and it should come to a new screen that allows you to change the title.

  • ArchWiki: suggestion for a new page layout

    Finally, I have some time to spare for ArchWiki improvement.
    I have modified my article on CMYK support in The GIMP as an example.
    Please take a look at it here:
    http://wiki.archlinux.org/index.php/CMY … n_The_GIMP
    The code to produce the box on the right is here:
    {{sn|'''Article summary:'''
    This article will show how to enable rudimentary CMYK support in The GIMP using the Separate plug-in, and explain how to use color proof filter to soft-proof your images.
    It will also cover more general topics on CMYK colors and DTP.
    '''Required software:'''
    *[http://www.gimp.org/ The GIMP The GIMP]
    *[http://www.littlecms.com/ lcms]
    *[http://download.adobe.com/pub/adobe/iccprofiles/win/AdobeICCProfiles_end-user.zip Adobe ICC profiles]
    *[http://www.blackfiveservices.co.uk/separate.shtml Separate plugin source]
    '''Related article:'''
    *[[Using lprof to profile monitors]]
    This is the best we can do with current ArchWiki setup. It would be even better if we could list categories in the box, as well as i18n links.

A: ArchWiki: suggestion for a new page layout

dtw wrote:Doesn't display correctly in IE
I've been tinkering with the templates. It's fixed now, I think.
Anyway, the templates used for the job can be seen from the code:
{{Article summary start}}
{{Article summary text|This article will show how to enable rudimentary CMYK support in The GIMP using the Separate plug-in, and explain how to use color proof filter to soft-proof your images. It will also cover more general topics on CMYK colors and DTP.}}
{{Article summary heading|Translations}}
{{i18n_entry|Deutsch|CMYK support in The GIMP(Deutsch)}}
{{i18n_entry|English|CMYK support in The GIMP}}
{{i18n_entry|Español|CMYK support in The GIMP(Español)}}
{{i18n_entry|Finnish|CMYK support in The GIMP(Suomi)}}
{{i18n_entry|Français|CMYK support in The GIMP(Français)}}
{{i18n_entry|Nederlands|CMYK support in The GIMP(Nederlands)}}
{{Article summary heading|Required software}}
{{Article summary link|The GIMP (v2.0 and above)|http://www.gimp.org/}}
{{Article summary link|lcms (v1.15 ?)|http://www.littlecms.com/}}
{{Article summary link|Separate plugin (v0.10 and above ?)|http://www.blackfiveservices.co.uk/separate.shtml}}
{{Article summary heading|Related articles}}
{{Article summary wiki|Using lprof to profile monitors}}
{{Article summary end}}
As you can see, it's a bit more typing than before, but it sure looks better. I might shorten the names for the templates. I wanted to make them memorable so they are a bit long.
As you can see, the problem of i18n links integration was fixed, so you can use existing i18n template and combine with the new "Article summary" set.
I will modify the article about writing summaries to include those templates and examples.
EDIT:  :oops:  the i18n links in the article are just examples. Don't use them, since they lead to non-existing pages.
EDIT2: Okay, I've played around with the appearance of the summary box, but I'm at work now, so it's going nowhere. I'll play with it some more when I get home.

dtw wrote:Doesn't display correctly in IE
I've been tinkering with the templates. It's fixed now, I think.
Anyway, the templates used for the job can be seen from the code:
{{Article summary start}}
{{Article summary text|This article will show how to enable rudimentary CMYK support in The GIMP using the Separate plug-in, and explain how to use color proof filter to soft-proof your images. It will also cover more general topics on CMYK colors and DTP.}}
{{Article summary heading|Translations}}
{{i18n_entry|Deutsch|CMYK support in The GIMP(Deutsch)}}
{{i18n_entry|English|CMYK support in The GIMP}}
{{i18n_entry|Español|CMYK support in The GIMP(Español)}}
{{i18n_entry|Finnish|CMYK support in The GIMP(Suomi)}}
{{i18n_entry|Français|CMYK support in The GIMP(Français)}}
{{i18n_entry|Nederlands|CMYK support in The GIMP(Nederlands)}}
{{Article summary heading|Required software}}
{{Article summary link|The GIMP (v2.0 and above)|http://www.gimp.org/}}
{{Article summary link|lcms (v1.15 ?)|http://www.littlecms.com/}}
{{Article summary link|Separate plugin (v0.10 and above ?)|http://www.blackfiveservices.co.uk/separate.shtml}}
{{Article summary heading|Related articles}}
{{Article summary wiki|Using lprof to profile monitors}}
{{Article summary end}}
As you can see, it's a bit more typing than before, but it sure looks better. I might shorten the names for the templates. I wanted to make them memorable so they are a bit long.
As you can see, the problem of i18n links integration was fixed, so you can use existing i18n template and combine with the new "Article summary" set.
I will modify the article about writing summaries to include those templates and examples.
EDIT:  :oops:  the i18n links in the article are just examples. Don't use them, since they lead to non-existing pages.
EDIT2: Okay, I've played around with the appearance of the summary box, but I'm at work now, so it's going nowhere. I'll play with it some more when I get home.

  • How do you set the default magnification for Acrobat.  All documents that I open enlarge to 174% and are too big.

    How do you set the default magnification for Acrobat.  All documents that I open enlarge to 174% and are too big.  I see how to change the size after the document is open by going to File/properties/initial view and saving this setting.  I want all documents to open at 100% when they are first opened.  Can I set this as a default view?

    Hey Kris,
    You might go to Edit> Preferences> Zoom
    Do this without opening any particular PDF so that it applies to the program itself and not just one document.
    Try this and then let me know.
    Regards,
    Anubha

  • Preview not opening new pages documents after Yosemite upgrade

    Just upgraded to Yosemite and also upgraded Pages to 5.5.  Created a new Pages document and now, in Finder, the preview does not work.  If I control click on the pages file and select open with Preview I get an error "The file “XXXXX.pages” could not be opened. It may be damaged or use a file format that Preview doesn’t recognize."  Existing (previous version) Pages documents do open in Finder.  Does anyone else have this problem?

    Yes this has been reported by others.
    No solution, so far.
    Peter

  • How to use a formula for dynamic New Page After?

    There is a formula for dynamic New Page After.
    How do I get value of formula?
    I am using RAS and the ReportClientDocument.

    There is a section object.  Off that there is a format property that is of type sectionformat.  From there there is a ConditionFormulas property which I believe is a collection of all the formulas you can set for a section.

  • Need to specify default filename for SaveAs

    I am using the command app.execMenuItem("SaveAs"); in the click event of a button. Is there anyway that I can specify a default filename for the user? I do want the user to get the Save As window and the ability to change the name if possible.
    The form is generated by the RenderForm Java script, and the name being generated as a default for the SaveAs window is RenderForm.pdf
    Thanks,
    Velvet

    Chris, I think you missed this one.
    I think you want to change the name when calling app.SaveAs via javascript from the client not on the server. Since app.executeMenuItem("saveAs") will not take any parameters to suggest a file name. I think you will have to use doc.saveAs which will allow the name to be specified. This would require a trustedFunction which may or will not work unless you have known users. You will also need to prompt for the file name before making the call.
    Here is some untested code to get you started...
    You will need to create a trustedFunction (see AcroJS.pdf for details) ..
    saveFunc = app.trustedFunction(function (filename) {
    app.beginPriv();
    try {
    event.target.saveAs({cPath: filename});
    } catch (err) {
    app.alert("Error: " + err);
    app.endPriv();
    Code for your event...
    var suggestedName = "MyPDFName.pdf";
    // Note This will only work if you know where they will be saving it
    var cPathToSaveTo = "/c/temp/";
    var cResponse = app.response({
    cQuestion: "What name would you like to use for this PDF?",
    cTitle: "File Name",
    cDefault: suggestedName,
    cLabel: "File Name:" })
    if(cResponse != null)
    saveFunc(cPathToSaveTo + cResponse );
    Hope this helps.
    Rich Ruiz
    Novanis

  • Tcode for creating new page size in smart forms

    dear friends ,
    can any one tell me the tcode for creating new page size in smart forms.
    thanks&regards
    veerachamy

    page formats?
    check in SPAD.
    Regards
    Prabh

  • Include report header for every new page.

    Hi expert,
    I have create a report with two buttons, 'previous page' and 'next page'. when i click the buttons, my report will go to another new page. I am using NEW-PAGE in my report.
    My problem now is, how can i include TOP-OF-PAGE for every new page in my report? When i click on the button, the TOP-OF-PAGE will not trigger by my report.
    Pls advise how to solve it.
    Thanks in advance.

    top-of-page will get triggered in spool request only when u run in background.

  • Maybe you are looking for

    • Batch Number with quantity

      Dear All, With regards to clients requirement, at the time of Goods issue form either one storage location to other Sloc or one plant to other plant in the batch field when i put F4 and after providing receptive material and plant the list of availab

    • Incorrect Formatting when converting to .PDF

      Hi All, I am experiencing an issue when converting a file to pdf when using pegasus opera program. This has been working fine for ages until the last week or so. My colleague is also using the same setup and it is working fine for her. When convertin

    • Where is owb user information stored in tables

      Hi All, I am using OWB Repository 10.2.0.4.0 . I need to know, where is OWB User information stored in physical tables of repository. Please help me in this regard?

    • Major problems with Premiere CS4

      Hello there! I'm having major problems with CS4. I recently bought a new computer - essentials are as follows: Intel Core i7 920 2.66GHz 2 x Kingston 3x2GB, DDR3 1333MHz (=12 GB RAM) Ati Radeon HD 5770 v2 Asus P6T SE, LGA1366, X58, DDR3, ATX 2 x 500G

    • Hide specific content from search engine SEO, javascript

      Hello, I was wondering how good this would work to hide specific content for search engines. <script> var text = '<table><tr><td>Hello</td></tr></table>' document.write(text) </script> I have a site that has a database, when a user arrives at the pag