• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: bugs, bugs, bugs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bugs, bugs, bugs


  • Subject: Re: bugs, bugs, bugs
  • From: Jason Bourque <email@hidden>
  • Date: Sat, 31 Mar 2001 07:24:50 -0500

> Those who also read the applescript-users list will recognize this as a
> sneaky way of double-posting, but the discussion over there didn't yield an
> answer, at least not one that worked for me.
>
> My nominee for No. 1 neglected problem is that of setting the default
> directory for open & save dialogs via applescript. As I piece together the
> story, this used to be doable with the old "choose folders" scripting
> addition but was broken somewhere around OS 7.5. Standard additions doesn't
> even mention a default starting point.
>
> Alledgedly there are some third party solutions. LNS Choose Files & Folders
> seems to work but it doesn't use Navigation Services and, even more
> worrisome, is listed on the Late Night website as no longer supported. Akua
> Sweets supposedly can control the default directory within some applications,
> but those applications apparently do not include the Finder or QuarkXpress,
> which makes it a nonsolution for me. Besides, Akua builds a "save-as" dialog,
> not a "choose folder." I've heard that Smile can handle this but also that it
> requires that Smile be installed on all machines running such a script. (I
> hope I have that wrong, maybe it's a scripting addition...) The new version
> of Default Folder comes with an osax that claims to handle this, but there's
> a known conflict with Apple Menu Options and some unknown conflict that
> causes problems even when Apple Menu Options is disabled.
>
> But even if I am wrong about Akua or Smile or any other third-party
> solutions, I'm baffled about why this isn't part of the AppleScript core.
> Surely I'm not the only one who occassionally needs to ask the user to choose
> a folder, and when I do I'd like to start in the right neighborhood.
>
> I'm *really* interested in knowing how other scripters handle this problem...
>
> Robert Kyle
> Star Tribune
> Minneapolis


Hello,

I don't know if this has been mentioned yet, but the way I get Navigational
Services to work is with the program Default Folder. I think version 3.9
provided a scripting addition named "SetFileDialogFolder" that has the
following dictionary.

SetFileDialogFolder: Sets the current folder in a file dialog
SetFileDialogFolder file specification -- folder to switch to
[Result: small integer] -- result of command (OSErr)

I live the program for other uses like for instance when in a save dialog
you can click in a finder window open or popup or on the desktop and the
save dialog will change location to where you clicked.

Hope this helps.

Jason Bourque


  • Prev by Date: Automation for Explorer Schedulede vents
  • Next by Date: Re: Script editor/Finder weirdness
  • Previous by thread: Automation for Explorer Schedulede vents
  • Next by thread: Re: bugs, bugs, bugs
  • Index(es):
    • Date
    • Thread