Professional Web Applications Themes

Default Location using NavServices - Mac Programming

Hello, Does anyone know how to specify a default location (e.g. a starting folder) using NavServices? I am using an Application Bundle and I have a folder containg scripts in the same folder as the actual application file, e.g. AppPackageFolder:Contents:MacOSClassic:myApp AppPackageFolder:Contents:MacOSClassic:Scripts And I want the NavServices Get File Dialog to get a file in the Scripts folder. How do I go about doing this? I would like to use NavCreateGetFileDialog(), NavDialogRun(), set of functions but I can't see how to specify a default folder. I have some code that uses NavGetFile() and passes in the correct FSSpec/AEDesc but the dialog ...

  1. #1

    Default Default Location using NavServices

    Hello,

    Does anyone know how to specify a default location (e.g. a starting folder)
    using NavServices?

    I am using an Application Bundle and I have a folder containg scripts in the
    same folder as the actual application file, e.g.

    AppPackageFolder:Contents:MacOSClassic:myApp
    AppPackageFolder:Contents:MacOSClassic:Scripts

    And I want the NavServices Get File Dialog to get a file in the Scripts
    folder.

    How do I go about doing this? I would like to use NavCreateGetFileDialog(),
    NavDialogRun(), set of functions but I can't see how to specify a default
    folder. I have some code that uses NavGetFile() and passes in the correct
    FSSpec/AEDesc but the dialog does start with the examples folder displayed.

    Thanks very much for any help
    Eric



    Eric Guest

  2. #2

    Default Re: Default Location using NavServices

    In article <dsl.pipex.com>,
    Eric Edwards <net> wrote:
     

    Apple has a Tech Q&A covering this:

    <http://developer.apple.com/qa/qa2001/qa1151.html>

    --
    Isaac Wankerl
    Metrowerks
    Mac Software Developer
    Isaac Guest

Similar Threads

  1. Default doent window location
    By Istvan_Sass@adobeforums.com in forum Adobe Indesign Macintosh
    Replies: 0
    Last Post: September 25th, 05:40 PM
  2. default location for apache2.pm
    By ny152 in forum PERL Modules
    Replies: 2
    Last Post: October 12th, 07:36 AM
  3. How to set default File Location?
    By StephenFlanagan@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 1
    Last Post: May 16th, 11:49 PM
  4. Acrobat 6 and Default Files Location
    By tracycholzer@adobeforums.com in forum Adobe Acrobat Windows
    Replies: 1
    Last Post: April 20th, 06:25 PM
  5. default location of connections folder
    By Robbie in forum Macromedia Dreamweaver
    Replies: 1
    Last Post: July 21st, 10:10 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139