Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > Mac OS X Development Forums > Mac OS X Development

Reply
 
LinkBack Thread Tools Display Modes
Old 05-13-2009, 08:56 PM   #1 (permalink)
Noobie here
 
Join Date: Mar 2009
Location: Fort Myers
Age: 18
Posts: 53
RobertD63 is on a distinguished road
Default Apple script- Safari tweaking app

All right Im making a Apple Script app that will make it to where your able to edit the safari 4 UI. Right now it looks like:
Code:
--Just getting it started
display dialog "Welcome"
-- Pick from list
choose from list {"Change the tabs", "Change the loading bar", "Change URL autocompleate", "Disable Top Sites"} with prompt "Choose one of the following things you would like to change in Apple's Safari 4 Beta" default items {"Change the tabs"} OK button name "Choose"

--DebugSafari4TabBarIsOnTop moves the tab bar back where you expect it to be
do shell script "defaults write com.apple.Safari DebugSafari4TabBarIsOnTop -bool NO"
display dialog "Thanks!"
This is just to make it look like something is going on here. But what I want to do is when the button cancel is selected it will quit the app. But how would I call that? Right now it shows as a variable
Never mind I solved this one with this code:
Code:
if {button returned:"Cancel"} then quit
Also I'm stuck here, how would I define multiple variables when using the list? I found an example script that does it once but if I want to call a variable for changing the tabs how?
Quote:
-- Pick from list
set imgType to choose from list {"PNG", "JPG", "GIF", "PDF", "TIFF", "PICT"} with prompt "Pick the image format you would like your screen shots to be in." default items {"PNG"} OK button name "Pick"

Last edited by RobertD63; 05-13-2009 at 09:27 PM.
RobertD63 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 472
15 members and 457 guests
alexeir, David-T, Dj_kades, foslock, iAppDeveloper, jeroenkeij, LunarMoon, Mijator, myach, pipposanta, QuantumDoja, robsmy, sacha1996, SLIC, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,928
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:26 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0