• 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: Creeping-featuritis
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creeping-featuritis


  • Subject: Re: Creeping-featuritis
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 17 Apr 2007 10:15:56 -0700

On Apr 17, 2007, at 9:51 AM, Steven D. Majewski wrote:

Another way is to move the dialog into a separate run handler:
 Double clicking on the droplet calls the run handler, which sets a
   property for the default format.
 Dropping a file calls the open handler, which sets the clipboard
	according to the default format property.

Yeah, that should work, because it wouldn't be all that common to be switching formats that much.


property Default_button : "Macintosh format"
property display_format : "Macintosh format"
set the display_format to button returned of (display dialog "Which format do you want the file path in?" with title "Choose display format" buttons {"Cancel", "Unix format", "Macintosh format"} default button Default_button)
set the Default_button to the display_format
on open {dropped_item}
if the display_format is "Unix format" then set the dropped_item to the POSIX path of the dropped_item
tell application "Finder" to set the clipboard to the dropped_item as text
end open


--
Whoever said the last man standing is the winner didn't invite the girl.

_______________________________________________
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
  • Follow-Ups:
    • Re: Creeping-featuritis
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Creeping-featuritis (From: Michelle Steiner <email@hidden>)
 >Re: Creeping-featuritis (From: "Mark J. Reed" <email@hidden>)
 >Re: Creeping-featuritis (From: "Steven D. Majewski" <email@hidden>)

  • Prev by Date: Re: Creeping-featuritis
  • Next by Date: Re: Creeping-featuritis
  • Previous by thread: Re: Creeping-featuritis
  • Next by thread: Re: Creeping-featuritis
  • Index(es):
    • Date
    • Thread