• 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
Curse of the Tongs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Curse of the Tongs


  • Subject: Curse of the Tongs
  • From: Mr Tea <email@hidden>
  • Date: Sun, 19 Jan 2003 01:29:25 +0000

I use comments to add brief annotations to certain types of file, and wanted
to set something up so that I could add Finder comments to scripts directly
from within a script editor.

Chuffed to bits with this brilliant idea, I put together a quick script to
try it out:

tell application "Script Debugger"
set theFile to file of window 1
set theComment to display dialog "Enter comment..." default answer ""
end tell
tell application "Finder" to set comment of theFile to theComment

The sharp-eyed among you will have already noticed that this hastily-wrought
script contains a significant error: the line that sets the comment should
begin 'set theComment to text returned of (display dialog... etc)'. I was
storing the entire result in 'theComment' rather than just the relevant
string. The script should have errored, but it didn't. Instead, the Finder
went Oriental. When I ran the script (entering the word 'Blank' as a
comment), the actual comment added to the file was this:

f,f2g?(??ee!?f.f,?fNe!?

I doubt that what I pasted above will survive posting. The original is a
string of Chinese(?) characters in the 'Apple LiGothic' font. Converting
these to ascii numbers in a vain attempt to unwrap the mystery glyphs
yielded a sequence of 63s, or question marks - which wasn't too helpful.

Curiously, dragging the text onto the desktop created a clipping with the
name "B7CE8rbb"?(-??B zbo#?-?B:{D1b?b:C B zbo#?". That probably won't have survived
posting either, but for the terminally curious, it came out as ascii numbers
{225, 239, 217, 114, 195, 165, 63, 40, 45, 63, 63, 202, 122, 182, 240, 45,
63, 188, 123, 245, 210, 63, 221, 232, 202, 122, 182, 240}.

Is this a bug or a deeply obscure easter egg? What does it mean? Do others
see this if they try to run the dodgy script that produced this odd result
on my machine.


Thanks for any input


Mr Tea
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re:Date mathematics help please
  • Next by Date: Re: Date mathematics help please
  • Previous by thread: Re: Date mathematics help please
  • Next by thread: Re: Date mathematics help please...
  • Index(es):
    • Date
    • Thread