Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
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"




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
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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.