• 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
Panel Ended Problems...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Panel Ended Problems...


  • Subject: Panel Ended Problems...
  • From: Jeff Justice <email@hidden>
  • Date: Sun, 17 Jun 2007 00:51:55 -0500

I apologize in advance for this lengthy question. I have been trying to get this simple little script to work for weeks now, and cannot figure out where it is going wrong. I am using FaceSpan, but I don't think there is anything specific to FaceSpan here. Here is what I have and the code:

A window named "main", opened at launch.

A button on "main" window with a script that says:

on clicked theObject
    getSourcePath()
end clicked

A script in "main" that says:

on opened theObject
    tell open panel
        set title to "Select Source Image Folder"
        set prompt to "Select Folder"
        set can choose directories to true
        set can choose files to false
        set allows multiple selection to false
    end tell
end opened

on getSourcePath()
    display (open panel)
end getSourcePath

on panel ended theObject with result theResult
        display dialog "Hello world"
end panel ended

Panel opens up when the button is clicked, the correct parameters for the panel are there, you select a folder, click on the "Select Folder" default button, and nothing. Click on the "Cancel" button, same thing, nothing. I have simply placed a dialog there to test, and I never get the dialog box.

The "panel ended" routine never gets called. I have tried re- arranging the locations of the code and nothing seems to work. Help please! I've been fiddling with this itty bitty script for weeks now, nothing I have tried works. Am I crazy, is it broken, am I stupid? (probably the latter)

Jeff J.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Prev by Date: A formatting issue?
  • Next by Date: Applescript grammar
  • Previous by thread: A formatting issue?
  • Next by thread: Applescript grammar
  • Index(es):
    • Date
    • Thread