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

Re: Droplet References Bug


  • Subject: Re: Droplet References Bug
  • From: KOENIG Yvan <email@hidden>
  • Date: Sun, 13 May 2012 17:10:21 +0200


Le 13 mai 2012 à 15:01, Christopher Stone a écrit :


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


Hello Chris

I added some code to your script to get the contents of the droppedFiles list

Here is the modified area :

end makeList



--=====
(*
Handler borrowed to Regulus6633 - http://macscripter.net/viewtopic.php?id=36861
*)
on writeTo(targetFile, theData, dataType, apendData)
-- targetFile is the path to the file you want to write
-- theData is the data you want in the file.
-- dataType is the data type of theData and it can be text, list, record etc.
-- apendData is true to append theData to the end of the current contents of the file or false to overwrite it
try
set targetFile to targetFile as text
set openFile to open for access file targetFile with write permission
if not apendData then set eof of openFile to 0
write theData to openFile starting at eof as dataType
close access openFile
return true
on error
try
close access file targetFile
end try
return false
end try
end writeTo


------------------------------------------------------------------------------------------------
on open droppedFiles


display dialog (count droppedFiles) as text


my writeTo((path to desktop as text) & "essai.txt", droppedFiles as text, text, false)


makeList(droppedFiles)
end open
------------------------------------------------------------------------------------------------


The first dialog displayed 102,
the text file contain 102 file paths and the TextWrangler document contain 102 lines too.

I can't guess what but it seems that something is weird on your system.

I repeat that I run 10.7.4 in French but I have some difficulties to imagine that there is a bug striking only on English systems.

Yvan KOENIG (VALLAURIS, France) dimanche 13 mai 2012 17:10:16



 _______________________________________________
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: Christopher Stone <email@hidden>
References: 
 >Droplet References Bug (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Detect if third word in string contains a number
  • Next by Date: Re: Droplet References Bug
  • Previous by thread: Droplet References Bug
  • Next by thread: Re: Droplet References Bug
  • Index(es):
    • Date
    • Thread