• 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
Droplet References Bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Droplet References Bug


  • Subject: Droplet References Bug
  • From: Christopher Stone <email@hidden>
  • Date: Sun, 13 May 2012 08:01:55 -0500

On May 12, 2012, at 20:37, Shane Stanley wrote:
On 11/05/2012, at 6:15 PM, Christopher Stone wrote:
Now this is weird.  I drop 35 items on the following in an app, and it gives me a length of 7.

For anyone following, we continued this discussion elsewhere. It seems that in 10.7, any .dmg files are silently ignored. It happened that Chris's sample files were mostly .dmg files. 

That's weird enough, but what's even weirder is that if all the files dragged are .dmg, they are handled fine.
______________________________________________________________________

Hey Folks,

This is on 10.7.4 (although there were similar issues on 10.7.3).

The entire contents of a folder dropped onto:

Droplet:

1 ~:Downloads:2012-05-12-062705 (Gathered):GIMP-2.8.0-SnowLeopard-Lion.dmg
2 ~:Downloads:2012-05-12-062705 (Gathered):Sends Correctly to BBEdit.scpt
3 ~:Downloads:2012-05-12-062705 (Gathered):Sends Incorrectly to BBEdit.scpt
4 ~:Downloads:2012-05-12-062705 (Gathered):Apache_OpenOffice_incubating_3.4.0_MacOS_x86_install_en-US.dmg

BBEdit (sorted by file-type):

~/Downloads/2012-05-12-062705 (Gathered)/Apache_OpenOffice_incubating_3.4.0_MacOS_x86_install_en-US.dmg
~/Downloads/2012-05-12-062705 (Gathered)/Cocktail 5.3 (Lion).dmg
~/Downloads/2012-05-12-062705 (Gathered)/Cookie 3.0.1.dmg
~/Downloads/2012-05-12-062705 (Gathered)/GIMP-2.8.0-SnowLeopard-Lion.dmg
~/Downloads/2012-05-12-062705 (Gathered)/Opera 11.64 (Intel).dmg
~/Downloads/2012-05-12-062705 (Gathered)/Skype 5.7.0.1130.dmg
~/Downloads/2012-05-12-062705 (Gathered)/Windownaut 1.2.dmg

~/Downloads/2012-05-12-062705 (Gathered)/Do Not Track Plus 2.2.0.510-cnet-safari.safariextz

~/Downloads/2012-05-12-062705 (Gathered)/Sends Correctly to BBEdit.scpt
~/Downloads/2012-05-12-062705 (Gathered)/Sends Incorrectly to BBEdit.scpt

~/Downloads/2012-05-12-062705 (Gathered)/Lion_DiskMaker_1.7.zip
~/Downloads/2012-05-12-062705 (Gathered)/LionDiskMaker 1.7b1.zip
~/Downloads/2012-05-12-062705 (Gathered)/TidyUp301.zip

The BBEdit-list is correct.

Here's the latest iteration of the droplet which has options for BBEdit, TextWrangler, and TextEdit.

If you put it in the Dock you can use the run-handler to test against the selection in the Finder as well.

------------------------------------------------------------------------------------------------
on makeList(fileList)
set AppleScript's text item delimiters to return
set _list to text items of (fileList as text)

repeat with i from 1 to (length of _list)
tell (a reference to item i of _list)
set (its contents) to ("" & i & " " & (get its contents))
end tell
end repeat

set _list to _list as text

tell application "BBEdit"
activate
set newDoc to make new document with properties {text:_list}
end tell

# tell application "TextWrangler"
#  activate
#  set newDoc to make new document with properties {text:_list}
# end tell

# tell application "TextEdit"
#  activate
#  set newDoc to make new document with properties {text:_list}
#  tell newDoc's text
#  set font to "Menlo"
#  set size to 14
#  end tell
# end tell

end makeList
------------------------------------------------------------------------------------------------
on open droppedFiles
makeList(droppedFiles)
end open
------------------------------------------------------------------------------------------------
on run
tell application "Finder"
set sel to selection as alias list
end tell
makeList(sel)
end run
------------------------------------------------------------------------------------------------

I'm relieved to know this problem is not unique to my machine/system, but the inconsistency with other people's experience is frustrating.

--
Best Regards,
Chris

 _______________________________________________
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: Droplet References Bug
      • From: Luther Fuller <email@hidden>
    • Re: Droplet References Bug
      • From: KOENIG Yvan <email@hidden>
  • Prev by Date: Re: Detect if third word in string contains a number
  • Next by Date: Re: Detect if third word in string contains a number
  • Previous by thread: Re: hide file
  • Next by thread: Re: Droplet References Bug
  • Index(es):
    • Date
    • Thread