InformationWindow: How do I get info from ...
InformationWindow: How do I get info from ...
- Subject: InformationWindow: How do I get info from ...
- From: "Pascal van den Bulck" <email@hidden>
- Date: Thu, 26 Feb 2004 15:26:51 +0100
- Priority: normal
- Thread-topic: InformationWindow: How do I get info from ...
Does anybody know how to get information from the inspector-/information window from the Finder.
I used to get the Findercomment of items and paste these into a custom field "Comment" in Portfolio.
However, under OS X this won't function no more:
tell application "Portfolio 6.1"
activate
-- Choose folder containing active Portfolio catalog
set the chosen_disk to (choose folder with prompt "Select sourcefolder of active catalog:")
set theCount to count record of front gallery
repeat with i from 1 to theCount
set newFName to filename of record i of front gallery
-- Switch to Finder and copy the Findercomments
tell application "Finder"
try
set FileComment to the comment of item newFName of entire contents of folder chosen_disk as text
if FileComment is "" then
set FileComment to "--"
end if
on error
set FileComment to "File not found"
end try
end tell
-- Paste the Findercomments in Portfolio
set field "Comment" of record i of front gallery to the FileComment as text
end repeat
end tell
Thanks,
Pascal
---------------------------- DISCLAIMER -----------------------------
Dit bericht (inclusief de eventuele bijlagen) is vertrouwelijk. Wanneer u
dit bericht ten onrechte heeft ontvangen, dient u de afzender hiervan
onmiddellijk per kerende e-mail op de hoogte te brengen en dit bericht te
verwijderen uit uw systeem. Elk onbevoegd gebruik en/of onbevoegde
verspreiding van dit bericht is niet toegestaan. U wordt erop gewezen dat
e-mailberichten aan wijziging onderhevig kunnen zijn. Morres Wonen B.V. is
niet aansprakelijk voor de onjuiste en onvolledige overdracht van de
informatie in dit bericht noch voor mogelijke vertraging in de ontvangst van
dit bericht of schade aan uw systeem als gevolg van dit bericht.
Morres Wonen B.V. staat er niet voor in dat de integriteit van dit bericht behouden is
gebleven noch dat dit bericht vrij is van virussen, niet is onderschept of
vatbaar is geweest voor tussenkomst (door derden).
This message (including any attachments) is confidential and may be
privileged. If you have received it by mistake please notify the sender by
return e-mail and delete this message from your system. Any unauthorised use
or dissemination of this message in whole or in part is strictly prohibited.
Please note that e-mails are susceptible to change. Morres Wonen B.V.
(including its group companies) shall not be liable for the improper or
incomplete transmission of the information contained in this communication
nor for any delay in its receipt or damage to your system. Morres Wonen B.V.
(or its group companies) does not guarantee that the integrity of this
communication has been maintained nor that this communication is free of
viruses, interceptions or interference.
_______________________________________________
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.