• 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: UI Scripting: Setting Save As Folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: UI Scripting: Setting Save As Folder


  • Subject: RE: UI Scripting: Setting Save As Folder
  • From: Jess Bowers <email@hidden>
  • Date: Thu, 06 Feb 2003 12:27:06 -0800

Answering my own question:

Because the "System Events" application is the front-most application,
Default Folder X is talking to it, instead of DVD Studio Pro. Therefore, I
must insert a line in the script as follows:

tell application "DVD Studio Pro" to activate

right before the Default Folder X line.

-jess


------ Forwarded Message
From: Jess Bowers <email@hidden>
Date: Thu, 06 Feb 2003 12:18:07 -0800
To: "'email@hidden'"
<email@hidden>, "St. Clair Software"
<email@hidden>
Subject: UI Scripting: Setting Save As Folder

I'm trying to get the Default Folders X to set a folder within a "Save
As..." dialog box like this:

tell application "System Events"
tell process "DVD Studio Pro"
click menu item "Save As
" of menu "File" of menu bar 1
end tell
end tell

tell application "Default Folder X" to SwitchToFolder alias
"AkiraHD:Users:Shared:"


And it seems to be hanging on that last command (and not switching to the
correct folder in the dialog. I have to switch back to the Script Editor
and hit CMD-. to stop the process.

What could I be doing wrong here?

thanks
jess

------ End of Forwarded Message
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >UI Scripting: Setting Save As Folder (From: Jess Bowers <email@hidden>)

  • Prev by Date: Dialog box with secure text entry?
  • Next by Date: Re: Encrypting passwords with AS
  • Previous by thread: UI Scripting: Setting Save As Folder
  • Next by thread: Dialog box with secure text entry?
  • Index(es):
    • Date
    • Thread