Re: 10.2.3
Re: 10.2.3
- Subject: Re: 10.2.3
- From: Takaaki Naganoya <email@hidden>
- Date: Fri, 20 Dec 2002 14:16:49 +0900
On 02.12.20 1:38 PM, "Paul Berkowitz" <email@hidden> wrote:
>
>> For detailed information on this Update, please visit
>
>> http://www.info.apple.com/kbnum/n107263
>
>
>
> AppleScript seems to be not updated. It stay version 1.9.
>
>
Not true. Script Editor is still 1.9, but AppleScript is 1.9.1 and it has
>
been updated.
I see. Script Editor's "About AppleScript" menu told me "1.9", but System
Profiler told me "1.9.1".
>
> For example,
>
>
>
> tell app "Finder"
>
> set b to name of (info for file tempName)
>
> end tell
>
>
>
> returns wrong file name. It is serious very much.
>
>
>
>
Use the Finder itself:
>
>
tell app "Finder"
>
set b to name of file tempPath
>
end tell
>
>
>
You shouldn't be using (info for) in the Finder anyway. But I guess you're
>
saying that there's a problem with (info for), even outside the Finder? Use
>
the Finder instead - it's all Unicode.
Thank you for your advice. But the code above couldn't solve the probrem.
My whole testing code is like this.
tell application "Finder"
activate
set a to choose folder
set aPath to a as text
set allFile to name of every file in folder a
set aList to {}
repeat with aFile in allFile
set tempName to aPath & aFile
set b to name of file tempName
set c to comment of file tempName
set aList to aList & {{tempName, b, c}}
end repeat
end tell
tell application "Microsoft Excel"
set Value of Range "R1C1:R1C3" to {"Full-Path", "Filename", "Comment"}
set cellR to 2
repeat with anItem in aList
set Value of Cell ("R" & cellR & "C1:R" & cellR & "C3") to anItem
set cellR to cellR + 1
end repeat
AutoFit EntireColumn of Range "C1:C3"
end tell
Still returns wrong filename.
But path is not be misunderstood even if includes Japanese characters like
hiragana, katakana, kanji and Japanese symbolic characters.
Takaaki Naganoya
A Chief Architect of Artifical Brain User Interface "Newt On"
http://www.airmac.org/newton_p.html
email@hidden
_______________________________________________
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: | |
| >Re: 10.2.3 (From: Paul Berkowitz <email@hidden>) |