• 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
Browser and Pop button in applescript studio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Browser and Pop button in applescript studio


  • Subject: Browser and Pop button in applescript studio
  • From: Jesse Shanks <email@hidden>
  • Date: Fri, 19 Apr 2002 10:00:40 -0700

on 4/19/02 4:41 AM, email@hidden at
email@hidden wrote:

> I'm trying to include either an NSBrowser or NSPopUpButton in my
> applescript studio application, but am not sure about how to go about
> getting either of them to list the contents of a local folder (each item
> in the folder as a new item in the list). If anybody knows, it would be
> greatly appreciated!

Populate a popup button from a list:

delete every menu item of menu of popup button "Button Name" of window
"Window Name"

repeat with i from 1 to count of theList
make new menu item at the end of menu items of menu of popup button
"Menu Name" of window "Window Name" with properties {title:name of item i of
theList,enabled:true}
end repeat

(<http://www.blankreb.com/studiosnips.php?ID=5>)


As far as the browser control. I posted a request for some help about it to
the Studio list and didn't get much help. I have struggled with that control
myself. I am sure I am missing something about it and the example browser is
not shedding much light for me. If someone could provide a workable code
snippet that populates a browser with some data from a list or lists (other
than disk items), I would be eternally grateful and put it in my Studio Log
Script Snippets <http://www.blankreb.com/studiosnips.php>.


--
Jesse Shanks
Writer & Web Developer
http://www.blankreb.com
email@hidden
530.886.0815
-
http://www.catsprite.com
http://www.digitallyobsessed.com
_______________________________________________
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.

  • Prev by Date: Re: Script for Chinese in Appleworks
  • Next by Date: AppleScript Studio more than one button
  • Previous by thread: Photoshop 7
  • Next by thread: AppleScript Studio more than one button
  • Index(es):
    • Date
    • Thread