• 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: AppleScript-Users Digest, Vol 9, Issue 229
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript-Users Digest, Vol 9, Issue 229


  • Subject: Re: AppleScript-Users Digest, Vol 9, Issue 229
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 28 May 2012 14:30:39 +0800


Sent from my iPhone

On May 28, 2012, at 3:00, email@hidden wrote:

> Send AppleScript-Users mailing list submissions to
>    email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
>    https://lists.apple.com/mailman/listinfo/applescript-users
> or, via email, send a message with subject or body 'help' to
>    email@hidden
>
> You can reach the person managing the list at
>    email@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of AppleScript-Users digest..."
>
>
> Today's Topics:
>
>   1. Re: Still trying to learn list subtleties (Christopher Stone)
>   2. Re: Still trying to learn list subtleties (Christopher Stone)
>   3. Re: AppleScript-Users Digest, Vol 9, Issue 228
>      (email@hidden)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 26 May 2012 23:19:19 -0500
> From: Christopher Stone <email@hidden>
> To: Applescript Users List <email@hidden>
> Subject: Re: Still trying to learn list subtleties
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> On May 26, 2012, at 22:14, Shane Stanley wrote:
>> I don't have a recent version of Graphic Converter, but I'm sure you don't need to quote all those numbers.
> ______________________________________________________________________
>
> Oops.  You're absolutely right.  I was just working from Bob's script and wasn't thinking.  :)
>
> --
> Take Care,
> Chris
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 26 May 2012 23:57:05 -0500
> From: Christopher Stone <email@hidden>
> To: Applescript Users List <email@hidden>
> Subject: Re: Still trying to learn list subtleties
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="windows-1252"
>
> On May 26, 2012, at 22:19, Robert Poland wrote:
>> Don't see how this accesses the "Choose Color" command.
> ______________________________________________________________________
>
> Hey Bob,
>
> I left that as an exercise for the reader.  :)
>
> But here's an updated script with choose color and with the extraneous quoting removed from the table (per Shane's reminder).
>
> Tested in GC 8.1.
>
> --
> Best Regards,
> Chris
>
> ------------------------------------------------------------------------------------------------
> set lookupTable to "
> Black     {0, 0, 0}
> BlueGray  {8000, 8000, 10000}
> Red       {65535, 0, 0}
> White     {65535, 65535, 65535}
> Manual    Activate Color Chooser
> "
> set theColorList to find text "^\\w+" in lookupTable with regexp, string result and all occurrences without case sensitive
> set theColor to (choose from list theColorList default items (item 2 of theColorList))
> if theColor is not false then
>    set theColor to item 1 of theColor
>    if theColor = "Manual" then
>        set colorRef to choose color
>    else
>        set colorRef to run script (find text "^" & theColor & "\\s+(.+)" in lookupTable using "\\1" with regexp and string result without case sensitive)
>    end if
> end if
> ------------------------------------------------------------------------------------------------
> tell application "GraphicConverter"
>    activate
>    show tools
>    delay 0.2
>    tell window 1 -- Tools window
>        set background color to colorRef
>        delay 0.4 -- need time
>    end tell
>    -- tell window 1 to change margins with {leftMargin, topMargin, rightMargin, bottomMargin}
>    -- beep
> end tell
> ------------------------------------------------------------------------------------------------
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <https://lists.apple.com/mailman/private/applescript-users/attachments/20120526/3b5e55a4/attachment.html>
>
> ------------------------------
>
> Message: 3
> Date: Sun, 27 May 2012 21:43:19 +0800
> From: "email@hidden" <email@hidden>
> To: "email@hidden"
>    <email@hidden>
> Subject: Re: AppleScript-Users Digest, Vol 9, Issue 228
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=GB2312
>
> Re: AppleScript-Users Digest, Vol 9, Issue 180
>
> 发自我的 iPhone
>
> 在 May 27, 2012,11:19,email@hidden 写道:
>
>> Re: AppleScript-Users Digest, Vol 9, Issue 180
>
>
>
> ------------------------------
>
> _______________________________________________
> AppleScript-Users mailing list
> email@hidden
> https://lists.apple.com/mailman/listinfo/applescript-users
>
> End of AppleScript-Users Digest, Vol 9, Issue 229
> *************************************************

 _______________________________________________
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: AppleScript-Users Digest, Vol 9, Issue 229
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: AppleScript-Users Digest, Vol 9, Issue 228
  • Next by Date: Re: AppleScript-Users Digest, Vol 9, Issue 229
  • Previous by thread: Re: AppleScript-Users Digest, Vol 9, Issue 228
  • Next by thread: Re: AppleScript-Users Digest, Vol 9, Issue 229
  • Index(es):
    • Date
    • Thread