• 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: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"


  • Subject: Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
  • From: Matthew Smith <email@hidden>
  • Date: Tue, 19 Dec 2006 14:52:32 +1100
  • Thread-topic: Can't get every document file of every folder of startup disk whose creator type = "MSIE"

On 19/12/2006 06:06, "Bill Hernandez" <email@hidden> wrote:

> tell application "Finder"
> -- Find any Explorer HTML documents
>
> -- ALL OF THESE GENERATE THE FOLLOWING  ERROR
> -- Finder got an error: Can't get every document file of every
> folder of startup disk whose creator type = "MSIE"
>
> -- set aList to get (every document file of every folder of the
> startup disk) whose {creator type:"MSIE"}
> -- set aList to get (every document file of every folder of the
> startup disk) whose (creator type) is "MSIE"
> -- set aList to get (every document file of every folder of the
> startup disk) whose (creator type is "MSIE")
>
> set aList to get (every document file of every folder of the startup
> disk) whose (creator type is "MSIE")
> repeat with f_ref in aList
> set the (creator type) of f_ref to "sfri" -- Change the creator
> type to Safari
> end repeat
> end tell
>
>
> Any ideas why this does not work ?

I am not sure why, but have you thought of using Spotlight to find them all?

The shell command is:

mdfind "kMDItemFSCreatorCode == 1297303877"

For some reason you have to give the decimal value for the creator code and
not the 4-character code. Perhaps you can use the hex value instead.

Does anyone know if there is a way of accessing Spotlight using AppleScript
mechanisms other than "do shell script"? If not, it should be requested.

--
Matthew Smith


 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Can't get every document file of every folder of startup disk whose creator type = "MSIE" (From: Bill Hernandez <email@hidden>)

  • Prev by Date: Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
  • Next by Date: Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
  • Previous by thread: Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
  • Next by thread: Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
  • Index(es):
    • Date
    • Thread