[futurebasic] RE: [FB] How great is this

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2003 : Group Archive : Group : All Groups

From: Craig Hoyt <aztech4mac@...>
Date: Mon, 9 Jun 2003 18:19:02 -0700
Thanks Wave, Robert, & Alain
Thank you guys for the help with the Help menu and the AE routine for
updating a volume/folder. I had to do some finessing to get the AE code to
work but with the modifications all work perfectly.

Craig
>
>This is code that I received from Robert Purves early this year.  You needs
>to used the  kAESync event which ( _"fndr",_"fupd" ) to the finder ( _"MACS"
>).  This is what Apple states and this function does.
>
>
>W.
>
>// send AE  _"fndr",_"fupd" to _"MACS" to request update of folder
>local mode
>local fn UpdateFolder( docSpec AS ^FSSpec )
>'~'1
>dim as OSErr    err, ignore
>dim as OSType @ creator
>dim as AEDesc   addrDesc, theAE
>dim as FSSpec  folderSpec
>
>err = fn FSMakeFSSpec( docSpec.vRefNum, docSpec.parID, "", folderSpec )
>if err then exit fn
>
>creator = _"MACS"
>err = fn AECreateDesc( _typeApplSignature, @creator, sizeof( OSType ),
>addrDesc )
>if err then exit fn
>err = fn AECreateAppleEvent( _"fndr", _"fupd", addrDesc,
>_kAutoGenerateReturnID, _kAnyTransactionID, theAE )
>ignore = fn AEDisposeDesc( addrDesc )
>if err then exit fn
>
>err = fn AECreateDesc( _typeFSS, folderSpec, sizeof( FSSpec ), addrDesc )
>if ( err == _noErr ) then err = fn AEPutParamDesc( theAE, _keyDirectObject,
>addrDesc )
>ignore = fn AEDisposeDesc( addrDesc )
>if ( err == _noErr ) then err = fn AESend( theAE, #_nil, _kAENoReply
>_kAECanInteract, _kAENormalPriority, _kAEDefaultTimeout, _nil, _nil )
>ignore = fn AEDisposeDesc( theAE )
>end fn = err
>
>
>
>
>
>
>-----Original Message-----
>From: Craig Hoyt [mailto:aztech4mac@...]
>Sent: Friday, June 06, 2003 3:13 PM
>To: futurebasic@...
>Subject: [FB] How great is this
>
>
>Glad to see the list is back! To show you guys how great the List is, I get
>a question answered before I even ask it. I was about to ask how to get the
>currently selected printer name in OSX and boom there's a post from Michael
>Evans showing Robert Purves routine for getting the name.
>
>I would like to know if there is a way to just get the printer name with
>the make (and driver version) info stripped. I just need the printer name
>as would be seen in the chooser in OS9. Also, is there a way to get the
>printer driver name?
>
>Since it's slow I'll toss in two more questions. How do I get access to the
>help menu with a carbon compile. I get an error message that qdErr% = FN
>HMGetHelpMenuHandle (helpMHndl&) is not defined.
>
>And lastly... how do I force the finder to update a volume. I create a new
>folder on a remote mounted volume and place some files in it. In OSX the
>folder does not appear although it has been created. Dismounting the volume
>and remounting shows it is there. I've tried to do a flush volume toolbox
>call but does not solve this issue. In OS9 the folder appears as it should
>but is OSX it doesn't.
>
>Thanks
>Craig
>
>
>======================================================================
>Aztech Professional On-Site Service
>
>* Craig Hoyt
>* Phone: 818-773-0864   Fax: 818-773-0675
>* E-mail: craig@...
>* Web: http://www.aztech4mac.com
>
>Macintosh Technology Solutions Since 1984
>=======================================================================

======================================================================
Aztech Professional On-Site Service

* Craig Hoyt
* Phone: 818-773-0864   Fax: 818-773-0675
* E-mail: craig@...
* Web: http://www.aztech4mac.com

Macintosh Technology Solutions Since 1984
=======================================================================