• 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 "file type" becomes "file kind" when compiled in Xcode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript "file type" becomes "file kind" when compiled in Xcode


  • Subject: Re: AppleScript "file type" becomes "file kind" when compiled in Xcode
  • From: Walter Ian Kaye <email@hidden>
  • Date: Sun, 29 Feb 2004 04:11:58 -0800

At 06:37a -0500 02/29/2004, Mark Douma didst inscribe upon an electronic papyrus:

Okay, this is gotta be a bug.

Yup. FileMaker developers have seen this kind of thing before.

If I replace "file type" with "+class asty;" and then compile, it works correctly-- Xcode shows "file type"!

If I then try to save the script, or compile again (without making any changes whatsoever), "file type" changes, once again, to "file kind".

What happens if you wrap it in a tell block to some other app?
Try this:

on process_fonts_(fonts_)
set total_count_ to count of fonts_
repeat with i from 1 to the total_count_
set font_ to (item i of fonts_)
tell app "SystemUIServer" --or "System Events" or something Chris likes
set font_info_ to info for font_

if ((alias of font_info_ is false) and (file type of font_info_ is "FFIL") and (file creator of font_info_ is "DMOV")) then
set POSIX_font_path_ to POSIX path of font_ as string
set sh_grep_sfnt_ to "grep -c sfnt \"" & POSIX_font_path_ & "/..namedfork/rsrc\""
-- and more.....
end if
end tell
end repeat
end process_fonts_

Stupid problems sometimes beget stupid workarounds...


-boo
_______________________________________________
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.


References: 
 >AppleScript "file type" becomes "file kind" when compiled in Xcode (From: Mark Douma <email@hidden>)

  • Prev by Date: Re: AppleScript "file type" becomes "file kind" when compiled in Xcode
  • Next by Date: Re: AppleScript "file type" becomes "file kind" when compiled in Xcode
  • Previous by thread: Re: AppleScript "file type" becomes "file kind" when compiled in Xcode
  • Next by thread: Re: AppleScript "file type" becomes "file kind" when compiled in Xcode
  • Index(es):
    • Date
    • Thread