Re: AppleScript Help
Re: AppleScript Help
- Subject: Re: AppleScript Help
- From: Walter Ian Kaye <email@hidden>
- Date: Thu, 3 Jun 2004 08:32:00 -0700
At 02:18p +0100 06/03/2004, Mark Thomas didst inscribe upon an
electronic papyrus:
I'm a fairly new to apple script, and I was wondering if I can write an
apple script which will copy files over the extensions folder within MacOS
9.x environment ???, as in MacOS-X I'm using a BSD script to do the work.
Is that possible ???.
Yes. :)
One thing I did thik could be an issue is that I might not know what
the users HD is called for the path, is that an issue ???.
No. :)
I'm building up an installation package and this is why I need to copy
stuff into extensions folder.
Since you're using a BSD script, I assume you will want the POSIX
path (normally "/System Folder/Extensions/")? The following works for
me on Jaguar:
tell application "Finder"
set e to POSIX path of (container of application file id "aIPG" as alias)
set f to quoted form of e
end tell
{e, f}
Any of 'aIPG', 'soup', 'PMAN', and 'prmt' appear to work here; I
don't know which would be most reliable -- I'm guessing 'aIPG' (and
there's the caveat that if the user has by any chance made a
duplicate of one of those apps, the Finder might possibly find the
duplicate's location instead).
aIPG = ShareWay IP Personal Bgnd
soup = Software Update Engine
PMAN = Queue Monitor
prmt = PrintMonitor (...or Desktop PrintMonitor)
-W
_______________________________________________
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.