• 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: Bill Hernandez <email@hidden>
  • Date: Mon, 18 Dec 2006 22:07:11 -0600


On Dec 18, 2006, at 7:20 PM, deivy petrescu wrote:

set l to alias "BuiaBuio:Users:deivy:Desktop:Ex_Dtop_folder:"
-- the line below is really one line
tell application "Finder" to x set the creator type of (every document file of (every folder) of l) whose (name contains ".txt") to "R*ch"


I tried what you sent me but that did not work ?

set l to alias "HardDisk:Users:Bill:Desktop:"
tell application "Finder" to set the creator type of (every document file of (every folder) of l) whose (name contains ".txt") to "R*ch"


-- Finder got an error: Can't set creator type of every document file of every folder of alias "HardDisk:Users:Bill:Desktop:" whose name contains ".txt" to "R*ch".


-- I tried all of these, but they did not work either ?

set test to 3

if (test = 1) then
tell application "Finder"
set theFolder to (choose folder)
set the creator type of (every document file of (every folder of theFolder)) whose (name contains ".txt") to "R*ch"
end tell


-- Finder got an error: Can't set creator type of every document file of every folder of alias "HardDisk:Users:Bill:Desktop:" whose name contains ".txt" to "R*ch".
end if



if (test = 2) then
tell application "Finder"
set theFolder to ((choose folder) as text)
open folder theFolder
set the creator type of (every document file of (every folder of folder theFolder)) whose (name contains ".txt") to "R*ch"
end tell


-- Finder got an error: Can't get every folder of "HardDisk:Users:Bill:Desktop:".
end if



if (test = 3) then
tell application "Finder"
set theFolder to (choose folder)
open folder theFolder
set Sel to get ((every document file of (every folder of theFolder)) whose (name contains ".txt")) as alias list
repeat with theItem in aSel
set the creator type of theItem to "R*ch"
end repeat
end tell


-- Finder got an error: Can't get every folder of "HardDisk:Users:Bill:Desktop:".
end if


if (test = 4) then
tell application "Finder"
set theFolder to (choose folder)
open folder theFolder
set Sel to get ((every document file of (every folder of theFolder)) whose (name extension is "txt")) as alias list
repeat with theItem in aSel
set the creator type of theItem to "R*ch"
end repeat
end tell


-- Finder got an error: Can't get every folder of "HardDisk:Users:Bill:Desktop:".
end if


Thanks for trying...

Bill Hernandez
_______________________________________________
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: deivy petrescu <email@hidden>
References: 
 >Want to get the full path of the mailbox (From: Robert Nicholson <email@hidden>)
 >Can't get every document file of every folder of startup disk whose creator type = "MSIE" (From: Bill Hernandez <email@hidden>)
 >Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE" (From: deivy petrescu <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