• 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: Unwanted font style transfers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unwanted font style transfers


  • Subject: Re: Unwanted font style transfers
  • From: Tom Robinson <email@hidden>
  • Date: Wed, 12 Feb 2003 20:15:41 +1300

>I'm grabbing basic file information and loading it into a FileMaker
>database. All is well except for the filename. When I transfer the
>filename to a cell in FileMaker Pro the font style is different from
>all of the rest of the information gathered from the same Finder
>action.

I had the same problem going from both the Finder and iTunes to FileMaker - it seems there's some style information which gets transferred too (though why it's relevant to iTunes and the Finder when they don't save style information I don't understand...).

Your filesize field is probably numeric so FileMaker will be ignoring the style information (and/or the Finder doesn't set it for physical size).

My first approach was to replace the field contents with itself at the FileMaker end. After learning a bit more AppleScript I've come up with:

tell application "Finder" to set theComment to comment of alias thisItem
...
set plainTheComment to <<class ktxt>> of (theComment as record) -- Most important line for you
...
tell application "FileMaker Pro" to create record with data {plainThisItem, theCreator, theType, plainTheComment}

i.e. theComment contains both text and style information. plainTheComment contains only the text.

(Where << and >> are the chevrons from option-\ and option-shift-\)

Cheers
--
About noon, Silk shook himself and looked around... "Did anybody think to bring something to drink?" he asked. ... "Water?" Garion suggested. "I'm thirsty Garion, not dirty" -- David Eddings, Castle of Wizardry
_______________________________________________
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: Remote Access and Network Setup Scripting problems under OS 9.1 (and 9.2.1)
  • Next by Date: Re: Non Compulsory Parameters & a Null Constant ?
  • Previous by thread: Re: Unwanted font style transfers
  • Next by thread: Gradient color info in Illustrator
  • Index(es):
    • Date
    • Thread