• 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: "Mark J. Reed" <email@hidden>
  • Date: Tue, 17 Apr 2007 12:25:26 -0400

Uhm, yeah.   I think I'd go with two different droplets instead. :)


On 4/17/07, Michelle Steiner <email@hidden> wrote:
The goal was to get the pathname of a file or folder onto the clipboard.

The solution was simple:
on open {dropped_item}
 tell application "Finder" to set the clipboard to the dropped_item as text
end open

The solution, after creeping-featuritis:
property Default_button : "Macintosh format"
on open {dropped_item}
 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
 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




-- "I'll do the best I can do because that's the best I can do!"

 _______________________________________________
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



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

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