Re: Mount Volume
Re: Mount Volume
- Subject: Re: Mount Volume
- From: q~ <email@hidden>
- Date: Mon, 27 Aug 2001 22:31:40 -0400
I have a standard setup for when I need to mount a server volume. It may
look like a lot of code, but it keeps things simple:
set serverIP to -- IP address as string exp. "10.0.0.1"
set volumeName to -- Sharepoint name as string exp. "MyServer's Drive"
set userName to -- Valid user name as string exp. "MyName"
(* tell application "File Sharing"
set userName to owner name
quit
end tell *) --Alternate way of getting userName
set UserPassword to "" -- make sure this is set to a null ("") value if
there is no password
set sMountCommand to "afp://" & userName & ":" & UserPassword & "@" &
serverIP & "/" & volumeName
tell application "Finder"
-- activate
with timeout of 30 seconds
mount volume sMountCommand
end timeout
end tell
Can't help with the Quark stuff, but hope this helps. -- q~
Re: Mount Volume, QuarkXPress MacOS 9.2.1 MAJOR weirdness
On Monday, August 27, 2001, at 08:02 PM, Bob.Kalbaugh wrote:
on 8/27/01 10:30 AM, Mark Esposito at email@hidden wrote:
(snip)
can't help with the network stuff but just curious..
-------------
tell application "QuarkXPress 4.11"
tell document 1
get file path
copy the result to the_path
save in the_path
save in "macintosh hd:desktop folder:saved location.qxd"
close
end tell
end tell
this results in two files (as expected), the first saved in "macintosh
HD:Applications (MacOS 9):" & [name of document 1], the second exactly
as
expected.
Why are you grabbing the path to the file and then saving the file? Do
you
need the path for some other reason? Because, if the file exists true
(not
an untitled, unsaved, document), then the path exists true, so you just
have
to save the document.
tell document 1
save
-- do other stuff
end tell
I'm not sure why you are getting the wierd behaviour. For the record,
the
script worked fine for me ( OS 8.5.1, QXP 4.11, 4.11 Fix It, AS 1.3.4 )
Hope you find your answer.
bob.kalbaugh
in Script Editor, the Event Log reads:
-------------
get file path of document 1
--> alias "Output:Watched:Archive:BNS 06-30 BASE P1"
(this is just some random file for this script)
save document 1 in "Output:Watched:Archive:BNS 06-30 BASE P1"
(this did NOT happen - its saved in the wrong place)
save document 1 in "macintosh hd:desktop folder:saved location.qxd"
(this happened)
close document 1
-------------
thanks!
--mark esposito
email@hidden
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users