Variable declaration
Variable declaration
- Subject: Variable declaration
- From: "BADRINATH, NANDINI" <email@hidden>
- Date: Mon, 21 Jun 2004 18:20:34 +0530
- Thread-topic: Variable declaration
>
Hi,
>
>
i tried the following script
>
>
set folderPath to "Disk:Folder:Folder:" --wherever your folder is
>
tell application "Finder"
>
set theFiles to (name of every file in folder folderPath) as list
>
repeat with theFile in theFiles
>
set filePath to folderPath & theFile
>
open file filePath using application file id "XPR3"
>
--do stuff in QXP?
>
tell application "QuarkXPress"
>
--something here to close the file;
>
--I don't have QXP, so I don't know what it expects.
>
--check its dictionary for a 'close' command of some kind.
>
end tell
>
end repeat
>
end tell
>
---------------
>
the script gives the error -- "cant make every file of " folder
>
path" into a string"
>
>
How do i declare "theFile" (in repeat) as list?
>
>
regards
>
Babith
_______________________________________________
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.