• 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: Requesting assistance with rtfd and attachments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Requesting assistance with rtfd and attachments


  • Subject: Re: Requesting assistance with rtfd and attachments
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 27 Sep 2012 21:19:21 +1000

On 27/09/2012, at 7:35 PM, Christopher Stone <email@hidden> wrote:

But maybe it will spark an idea.

Like this:

tell application "Finder"
set sel to selection as alias list
end tell
tell application "TextEdit"
tell front document
set its text to "Now is the time for all good men to come to the aid of their country."
repeat with i in sel
make new attachment at after character -1 with properties {file name:i}
end repeat
end tell
end tell

-- 
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: Requesting assistance with rtfd and attachments
      • From: Brian Christmas <email@hidden>
References: 
 >Requesting assistance with rtfd and attachments (From: Brian Christmas <email@hidden>)
 >Re: Requesting assistance with rtfd and attachments (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Requesting assistance with rtfd and attachments
  • Next by Date: Re: Requesting assistance with rtfd and attachments
  • Previous by thread: Re: Requesting assistance with rtfd and attachments
  • Next by thread: Re: Requesting assistance with rtfd and attachments
  • Index(es):
    • Date
    • Thread